クラス TcpOutboundGatewaySpec
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec<TcpOutboundGatewaySpec, TcpOutboundGateway>
org.springframework.integration.dsl.MessageHandlerSpec<TcpOutboundGatewaySpec, TcpOutboundGateway>
org.springframework.integration.ip.dsl.TcpOutboundGatewaySpec
- 実装されているすべてのインターフェース:
DisposableBean、FactoryBean<TcpOutboundGateway>、InitializingBean、Lifecycle、Phased、SmartLifecycle、ComponentsRegistration
public class TcpOutboundGatewaySpec
extends MessageHandlerSpec<TcpOutboundGatewaySpec, TcpOutboundGateway>
implements ComponentsRegistration
- 導入:
- 5.0
- 作成者:
- Gary Russell, Artem Bilan
フィールドのサマリー
フィールドクラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, targetインターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTEインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクターの概要
コンストラクターコンストラクター説明TcpOutboundGatewaySpec(TcpClientConnectionFactorySpec<?, ?> connectionFactorySpec) 提供された接続ファクトリ仕様を使用してインスタンスを構成します。TcpOutboundGatewaySpec(AbstractClientConnectionFactory connectionFactoryBean) 既存の spring-managed 接続ファクトリを使用してインスタンスを構築します。メソッドのサマリー
修飾子と型メソッド説明async(boolean async) true に設定すると、送信スレッドが解放され、非同期で応答を受信します。closeStreamAfterSend(boolean closeStreamAfterSend) 接続を閉じずに送信後に接続出力ストリームを閉じるには、true に設定します。remoteTimeout(long remoteTimeout) remoteTimeout(FunctionSE<Message<P>, ?> remoteTimeoutFunction) 実行時に呼び出されるFunctionSE を構成して、メッセージの送信先を決定します。unsolicitedMessageChannel(MessageChannel channel) 迷惑メッセージチャネルを設定します。unsolicitedMessageChannelName(StringSE channelName) 迷惑メッセージのチャネル名を設定します。クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.beans.factory.FactoryBean から継承されたメソッド
isSingleton
フィールドの詳細
connectionFactory
コンストラクターの詳細
TcpOutboundGatewaySpec
既存の spring-managed 接続ファクトリを使用してインスタンスを構築します。- パラメーター:
connectionFactoryBean- spring-managed Bean。
TcpOutboundGatewaySpec
提供された接続ファクトリ仕様を使用してインスタンスを構成します。- パラメーター:
connectionFactorySpec- スペック。
メソッドの詳細
remoteTimeout
- パラメーター:
remoteTimeout- 設定するリモートタイムアウト。- 戻り値:
- スペック。
- 関連事項:
remoteTimeout
実行時に呼び出されるFunctionSE を構成して、メッセージの送信先を決定します。通常、Java 8 ラムダ式で使用されます。.remoteTimeout(m -> m.getHeaders().get('rto'))- 型パラメーター:
P- メッセージのペイロード型。- パラメーター:
remoteTimeoutFunction- 関数。- 戻り値:
- スペック。
- 関連事項:
closeStreamAfterSend
接続を閉じずに送信後に接続出力ストリームを閉じるには、true に設定します。ByteArrayRawSerializerを使用する場合など、サーバーに EOF を通知するために使用します。使い捨て接続ファクトリが必要です。- パラメーター:
closeStreamAfterSend- 閉じます。- 戻り値:
- スペック。
- 導入:
- 5.2
async
true に設定すると、送信スレッドが解放され、非同期で応答を受信します。- パラメーター:
async- 非同期のリクエスト / 応答の場合は true。- 戻り値:
- スペック。
- 導入:
- 5.3
unsolicitedMessageChannelName
迷惑メッセージのチャネル名を設定します。- パラメーター:
channelName- 名前。- 戻り値:
- スペック。
- 導入:
- 6.1
unsolicitedMessageChannel
迷惑メッセージチャネルを設定します。- パラメーター:
channel- チャンネル。- 戻り値:
- スペック。
- 導入:
- 6.1
getComponentsToRegister
- 次で指定:
- インターフェース
ComponentsRegistrationのgetComponentsToRegister