クラス AbstractInternetProtocolReceivingChannelAdapter
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.udp.inbound.AbstractInternetProtocolReceivingChannelAdapter
- 実装済みのインターフェース一覧:
RunnableSE, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ApplicationEventPublisherAware, Lifecycle, Phased, SmartLifecycle, ComponentSourceAware, ExpressionCapable, MessageProducer, IntegrationPattern, CommonSocketOptions, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent, SchedulingAwareRunnable
- 既知の直属サブクラス
UnicastReceivingChannelAdapter
public abstract class AbstractInternetProtocolReceivingChannelAdapter
extends MessageProducerSupport
implements ApplicationEventPublisherAware, SchedulingAwareRunnable, CommonSocketOptions
受信 TCP/UDP チャネルアダプターの基本クラス。
- 導入:
- 2.0
- 作成者:
- Mark Fisher, Gary Russell, Artem Bilan
ネストされたクラスの概要
インターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス AbstractEndpoint から継承されたフィールド
lifecycleLockクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected voidcheckTaskExecutor(StringSE threadName) 何も指定されていない場合は、デフォルトのタスクエグゼキュータを作成します。protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。protected ApplicationEventPublisher@Nullable StringSEintgetPort()intintint@Nullable ExecutorSEbooleanvoidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetListening(boolean listening) voidsetLocalAddress(StringSE localAddress) マルチホームシステムでは、通信に使用されるネットワークインターフェースの IP アドレスを指定します。voidsetPoolSize(int poolSize) voidsetReceiveBufferSize(int receiveBufferSize) voidsetSoReceiveBufferSize(int soReceiveBufferSize) voidsetSoTimeout(int soTimeout) voidsetTaskExecutor(ExecutorSE taskExecutor) クラス MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getComponentType, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getOutputChannelName, getRequiredOutputChannel, isObserved, onInit, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherクラス AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス 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クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース CommonSocketOptions から継承されたメソッド
setSoSendBufferSizeインターフェース IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeインターフェース NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース RunnableSE から継承されたメソッド
runインターフェース SchedulingAwareRunnable から継承されたメソッド
getQualifier, isLongLivedインターフェース SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
AbstractInternetProtocolReceivingChannelAdapter
public AbstractInternetProtocolReceivingChannelAdapter(int port)
方法の詳細
getPort
public int getPort()- 戻り値:
- このレシーバーがリッスンしているポート。
setSoTimeout
public void setSoTimeout(int soTimeout) - 次で指定:
- インターフェース
CommonSocketOptions内のsetSoTimeout - パラメーター:
soTimeout- タイムアウト(ミリ秒単位)。- 関連事項:
getSoTimeout
public int getSoTimeout()- 戻り値:
- soTimeout
setSoReceiveBufferSize
public void setSoReceiveBufferSize(int soReceiveBufferSize) - 次で指定:
- インターフェース
CommonSocketOptions内のsetSoReceiveBufferSize - パラメーター:
soReceiveBufferSize- 受信バッファサイズ。- 関連事項:
getSoReceiveBufferSize
public int getSoReceiveBufferSize()- 戻り値:
- soReceiveBufferSize
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize) getReceiveBufferSize
public int getReceiveBufferSize()- 戻り値:
- receiveBufferSize
isListening
public boolean isListening()setListening
public void setListening(boolean listening) - パラメーター:
listening- セットを聞く
getLocalAddress
setLocalAddress
インターフェースからコピーされた説明:CommonSocketOptionsマルチホームシステムでは、通信に使用されるネットワークインターフェースの IP アドレスを指定します。受信アダプターおよびゲートウェイの場合、受信接続用にリストされているインターフェースを指定します。省略した場合、エンドポイントは使用可能なすべてのアダプターをリッスンします。UDP マルチキャスト送信アダプターの場合、マルチキャストパケットの送信先のインターフェースを指定します。UDP ユニキャストおよびマルチキャストアダプターの場合、確認応答ソケットがバインドされるインターフェースを指定します。TCP 送信アダプターおよびゲートウェイには適用されません。- 次で指定:
- インターフェース
CommonSocketOptions内のsetLocalAddress - パラメーター:
localAddress- ローカルアドレス。
setPoolSize
public void setPoolSize(int poolSize) setTaskExecutor
getTaskExecutor
- 戻り値:
- taskExecutor
getApplicationEventPublisher
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAware内のsetApplicationEventPublisher
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
MessageProducerSupportのdoStart
checkTaskExecutor
何も指定されていない場合は、デフォルトのタスクエグゼキュータを作成します。- パラメーター:
threadName- スレッド名。
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
MessageProducerSupportのdoStop