クラス TcpReceivingChannelAdapter
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.tcp.TcpReceivingChannelAdapter
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、SmartInitializingSingleton
、ApplicationContextAware
、Lifecycle
、Phased
、SmartLifecycle
、ComponentSourceAware
、ExpressionCapable
、OrderlyShutdownCapable
、MessageProducer
、IntegrationPattern
、ClientModeCapable
、TcpListener
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
、ManageableLifecycle
、ManageableSmartLifecycle
、TrackableComponent
public class TcpReceivingChannelAdapter
extends MessageProducerSupport
implements TcpListener, ClientModeCapable, OrderlyShutdownCapable
TcpConnection を使用してデータを受信する Tcp 受信チャネルアダプター - 接続ファクトリがサーバーファクトリである場合、このリスナーが接続を所有します。クライアントファクトリの場合、送信者が接続を所有します。
- 導入:
- 2.0
- 作成者:
- Gary Russell, Artem Bilan
ネストされたクラスのサマリー
インターフェース 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
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明int
スケジューラー、エグゼキューターなどの通常のシャットダウンの後、シャットダウン遅延が経過した後、残りのアクティブなスケジューラー / エグゼキュータースレッドの強制シャットダウンの前に呼び出されます。オプションで、まだ処理中のアクティブなメッセージの数を返すことができます。int
シャットダウンが始まる前に呼び出されます。protected void
doStart()
デフォルトでは何もしません。protected void
doStop()
デフォルトでは何もしません。protected ConnectionFactory
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。long
protected ConnectionFactory
boolean
boolean
boolean
protected void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。boolean
新しいメッセージが到着したときに TCPConnection によって呼び出されます。void
すぐに接続の確立を試みてください。void
setClientMode
(boolean isClientMode) void
setConnectionFactory
(AbstractConnectionFactory connectionFactory) クライアントまたはサーバー接続ファクトリを設定します。この場合(受信アダプター)、ファクトリがクライアント接続ファクトリである場合、ソケットは送信チャネルアダプターによって所有され、このアダプターは応答の受信に使用されます。void
setRetryInterval
(long retryInterval) クラス 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
コンストラクターの詳細
TcpReceivingChannelAdapter
public TcpReceivingChannelAdapter()
メソッドの詳細
onMessage
インターフェースからコピーされた説明:TcpListener
新しいメッセージが到着したときに TCPConnection によって呼び出されます。- 次で指定:
- インターフェース
TcpListener
のonMessage
- パラメーター:
message
- メッセージ。- 戻り値:
- メッセージがインターセプトされた場合は true
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupport
のonInit
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
MessageProducerSupport
のdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
MessageProducerSupport
のdoStop
setConnectionFactory
クライアントまたはサーバー接続ファクトリを設定します。この場合(受信アダプター)、ファクトリがクライアント接続ファクトリである場合、ソケットは送信チャネルアダプターによって所有され、このアダプターは応答の受信に使用されます。- パラメーター:
connectionFactory
- 設定する connectionFactory
isListening
public boolean isListening()getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
IntegrationObjectSupport
のgetComponentType
getClientConnectionFactory
- 戻り値:
- clientConnectionFactory
getServerConnectionFactory
- 戻り値:
- serverConnectionFactory
isClientMode
public boolean isClientMode()- 次で指定:
- インターフェース
ClientModeCapable
のisClientMode
- 戻り値:
- isClientMode
setClientMode
public void setClientMode(boolean isClientMode) - パラメーター:
isClientMode
- 設定する isClientMode
getRetryInterval
public long getRetryInterval()- 戻り値:
- retryInterval
setRetryInterval
public void setRetryInterval(long retryInterval) - パラメーター:
retryInterval
- 設定する retryInterval
isClientModeConnected
public boolean isClientModeConnected()- 次で指定:
- インターフェース
ClientModeCapable
のisClientModeConnected
- 戻り値:
- エンドポイントがクライアントモードで実行されている場合は true。
retryConnection
public void retryConnection()インターフェースからコピーされた説明:ClientModeCapable
すぐに接続の確立を試みてください。- 次で指定:
- インターフェース
ClientModeCapable
のretryConnection
beforeShutdown
public int beforeShutdown()インターフェースからコピーされた説明:OrderlyShutdownCapable
シャットダウンが始まる前に呼び出されます。実装は、新しいメッセージの受け入れを停止する必要があります。オプションで、処理中のアクティブなメッセージの数を返すことができます。- 次で指定:
- インターフェース
OrderlyShutdownCapable
のbeforeShutdown
- 戻り値:
- 使用可能な場合、アクティブなメッセージの数。
afterShutdown
public int afterShutdown()インターフェースからコピーされた説明:OrderlyShutdownCapable
スケジューラー、エグゼキューターなどの通常のシャットダウンの後、シャットダウン遅延が経過した後、残りのアクティブなスケジューラー / エグゼキュータースレッドの強制シャットダウンの前に呼び出されます。オプションで、まだ処理中のアクティブなメッセージの数を返すことができます。- 次で指定:
- インターフェース
OrderlyShutdownCapable
のafterShutdown
- 戻り値:
- 使用可能な場合、アクティブなメッセージの数。