クラス UnicastReceivingChannelAdapter
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.AbstractInternetProtocolReceivingChannelAdapter
org.springframework.integration.ip.udp.UnicastReceivingChannelAdapter
- 実装されたすべてのインターフェース:
RunnableSE
、Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、SmartInitializingSingleton
、ApplicationContextAware
、ApplicationEventPublisherAware
、Lifecycle
、Phased
、SmartLifecycle
、ComponentSourceAware
、ExpressionCapable
、MessageProducer
、IntegrationPattern
、CommonSocketOptions
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
、ManageableLifecycle
、ManageableSmartLifecycle
、TrackableComponent
、SchedulingAwareRunnable
- 既知の直属サブクラス
MulticastReceivingChannelAdapter
受信 UDP パケットを受信するチャネルアダプター。オプションで、すべてのデータが受信されたことを検証するために使用される 4 バイト長のフィールドをパケットの前に付けることができます。パケットには、確認応答を送信する必要があることを示す情報も含まれる場合があります。
- 導入:
- 2.0
- 作成者:
- Gary Russell, Artem Bilan, Christian Tzolov
ネストされたクラスのサマリー
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドのサマリー
フィールドクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
lifecycleCondition, lifecycleLock
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターコンストラクター説明UnicastReceivingChannelAdapter
(int port) 指定されたポートでリッスンする UnicastReceivingChannelAdapter を構築します。UnicastReceivingChannelAdapter
(int port, boolean lengthCheck) 指定されたポートでパケットをリッスンする UnicastReceivingChannelAdapter を構築します。メソッドのサマリー
修飾子と型メソッド説明protected boolean
asyncSendMessage
(DatagramPacketSE packet) protected void
doSend
(DatagramPacketSE packet) protected void
doStop()
デフォルトでは何もしません。サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。int
getPort()
protected DatagramSocketSE
boolean
protected void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。protected DatagramPacketSE
receive()
void
run()
protected void
void
setLengthCheck
(boolean lengthCheck) void
setLookupHost
(boolean lookupHost) void
setSocket
(DatagramSocketSE socket) protected void
setSocketAttributes
(DatagramSocketSE socket) タイムアウトと受信バッファサイズを設定します。ソケットカスタマイザを呼び出します。void
setSocketCustomizer
(SocketCustomizer socketCustomizer) 作成後にソケットをさらに構成するようにカスタマイザーを設定します。void
setSoSendBufferSize
(int soSendBufferSize) クラス org.springframework.integration.ip.AbstractInternetProtocolReceivingChannelAdapter から継承されたメソッド
checkTaskExecutor, doStart, getApplicationEventPublisher, getLocalAddress, getReceiveBufferSize, getSoReceiveBufferSize, getSoTimeout, getTaskExecutor, isListening, setApplicationEventPublisher, setListening, setLocalAddress, setPoolSize, setReceiveBufferSize, setSoReceiveBufferSize, setSoTimeout, setTaskExecutor
クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
クラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedType
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
インターフェース org.springframework.scheduling.SchedulingAwareRunnable から継承されたメソッド
getQualifier
フィールドの詳細
lock
コンストラクターの詳細
UnicastReceivingChannelAdapter
public UnicastReceivingChannelAdapter(int port) 指定されたポートでリッスンする UnicastReceivingChannelAdapter を構築します。- パラメーター:
port
- ポート。
UnicastReceivingChannelAdapter
public UnicastReceivingChannelAdapter(int port, boolean lengthCheck) 指定されたポートでパケットをリッスンする UnicastReceivingChannelAdapter を構築します。受信パケットの前に長さが期待される lengthCheck オプションの設定を有効にします。- パラメーター:
port
- ポート。lengthCheck
- true の場合、lengthCheck オプションが有効になります。
メソッドの詳細
setLengthCheck
public void setLengthCheck(boolean lengthCheck) - パラメーター:
lengthCheck
- true の場合、受信パケットには 4 バイトのバイナリ長ヘッダーが含まれることが期待されます。- 導入:
- 5.0
setSocketCustomizer
作成後にソケットをさらに構成するようにカスタマイザーを設定します。- パラメーター:
socketCustomizer
- カスタマイザー。- 導入:
- 5.3.3
isLongLived
public boolean isLongLived()getPort
public int getPort()- オーバーライド:
- クラス
AbstractInternetProtocolReceivingChannelAdapter
のgetPort
- 戻り値:
- このレシーバーがリッスンしているポート。
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupport
のonInit
run
public void run()sendAck
asyncSendMessage
doSend
receive
setSocket
- パラメーター:
socket
- 設定するソケット
getTheSocket
getSocket
setSocketAttributes
タイムアウトと受信バッファサイズを設定します。ソケットカスタマイザを呼び出します。- パラメーター:
socket
- ソケット。- 例外:
SocketExceptionSE
- ソケット例外。
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
AbstractInternetProtocolReceivingChannelAdapter
のdoStop
setSoSendBufferSize
public void setSoSendBufferSize(int soSendBufferSize) - パラメーター:
soSendBufferSize
- 送信バッファサイズ。- 関連事項:
setLookupHost
public void setLookupHost(boolean lookupHost) getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
IntegrationObjectSupport
のgetComponentType