クラス AbstractInternetProtocolReceivingChannelAdapter
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.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
ネストされたクラスの要約
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールドのサマリー
クラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
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コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected voidcheckTaskExecutor(StringSE threadName) 何も指定されていない場合は、デフォルトのタスクエグゼキュータを作成します。protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。protected ApplicationEventPublisherintgetPort()intintintbooleanvoidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetListening(boolean listening) voidsetLocalAddress(StringSE localAddress) マルチホームシステムでは、通信に使用されるネットワークインターフェースの IP アドレスを指定します。voidsetPoolSize(int poolSize) voidsetReceiveBufferSize(int receiveBufferSize) voidsetSoReceiveBufferSize(int soReceiveBufferSize) voidsetSoTimeout(int soTimeout) voidsetTaskExecutor(ExecutorSE taskExecutor) クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getRequiredOutputChannel, isObserved, onInit, 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, getComponentType, 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.ip.CommonSocketOptions から継承されたメソッド
setSoSendBufferSizeインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName, getComponentTypeインターフェース java.lang.RunnableSE から継承されたメソッド
runインターフェース org.springframework.scheduling.SchedulingAwareRunnable から継承されたメソッド
getQualifier, isLongLived
コンストラクターの詳細
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