S
- ターゲット MessagingGatewaySpec
実装型。G
- ターゲット MessagingGatewaySupport
実装型。public abstract class MessagingGatewaySpec<S extends MessagingGatewaySpec<S,G>,G extends MessagingGatewaySupport> extends IntegrationComponentSpec<S,G>
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
コンストラクターと説明 |
---|
MessagingGatewaySpec(G gateway) |
修飾子と型 | メソッドと説明 |
---|---|
S | autoStartup(boolean autoStartup) 自動起動フラグ。 |
S | errorChannel(MessageChannel errorChannel) 使用するエラーチャネル。 |
S | errorChannel(StringSE errorChannelName) 使用するエラーチャネル名。 |
S | errorOnTimeout(boolean errorOnTimeout) errorOnTimeout が true の場合、応答が期待されても何も受信されない場合に、 MessageTimeoutException ペイロードを含む ErrorMessage をエラーチャネルに送信するインスタンスを作成します。 |
S | id(StringSE id) コンポーネント識別子を構成します。 |
S | phase(int phase) 使用するライフサイクルフェーズ。 |
S | replyChannel(MessageChannel replyChannel) 使用する返信チャネル。 |
S | replyChannel(StringSE replyChannelName) 使用する返信チャネル名。 |
S | replyMapper(OutboundMessageMapper<?> replyMapper) 使用する OutboundMessageMapper 。 |
S | replyTimeout(long replyTimeout) 使用する応答タイムアウト。 |
S | requestChannel(MessageChannel requestChannel) 使用するリクエストチャネル。 |
S | requestChannel(StringSE requestChannelName) 使用するリクエストチャネル名。 |
S | requestMapper(InboundMessageMapper<?> requestMapper) 使用する InboundMessageMapper 。 |
S | requestTimeout(long requestTimeout) 使用するリクエストタイムアウト。 |
S | shouldTrack(boolean shouldTrack) コンポーネントをメッセージ履歴で追跡するかどうか。 |
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public MessagingGatewaySpec(G gateway)
public S id(StringSE id)
IntegrationComponentSpec
beanName
として使用されます。IntegrationComponentSpec<S extends MessagingGatewaySpec<S, G>,G extends MessagingGatewaySupport>
の id
id
- ID。public S phase(int phase)
phase
- フェーズ。SmartLifecycle
public S autoStartup(boolean autoStartup)
autoStartup
- autoStartup。SmartLifecycle
public S replyChannel(MessageChannel replyChannel)
replyChannel
- replyChannel。MessagingGatewaySupport.setReplyChannel(MessageChannel)
public S replyChannel(StringSE replyChannelName)
replyChannelName
- replyChannel の名前。MessagingGatewaySupport.setReplyChannelName(String)
public S requestChannel(MessageChannel requestChannel)
requestChannel
- requestChannel。MessagingGatewaySupport.setRequestChannel(MessageChannel)
public S requestChannel(StringSE requestChannelName)
requestChannelName
- requestChannel の名前。MessagingGatewaySupport.setRequestChannelName(String)
public S errorChannel(MessageChannel errorChannel)
errorChannel
- errorChannel。MessagingGatewaySupport.setErrorChannel(MessageChannel)
public S errorChannel(StringSE errorChannelName)
errorChannelName
- errorChannel の名前。MessagingGatewaySupport.setErrorChannelName(String)
public S requestTimeout(long requestTimeout)
requestTimeout
- requestTimeout。MessagingGatewaySupport.setRequestTimeout(long)
public S replyTimeout(long replyTimeout)
replyTimeout
- replyTimeout。MessagingGatewaySupport.setReplyTimeout(long)
public S errorOnTimeout(boolean errorOnTimeout)
MessageTimeoutException
ペイロードを含む ErrorMessage
をエラーチャネルに送信するインスタンスを作成します。エラーチャネルが設定されていない場合、MessageTimeoutException
がスローされます。errorOnTimeout
- true の場合、応答タイムアウト時にエラーメッセージを作成します。MessagingGatewaySupport.setErrorOnTimeout(boolean)
public S requestMapper(InboundMessageMapper<?> requestMapper)
InboundMessageMapper
。requestMapper
- requestMapper。MessagingGatewaySupport.setRequestMapper(InboundMessageMapper)
public S replyMapper(OutboundMessageMapper<?> replyMapper)
OutboundMessageMapper
。replyMapper
- replyMapper。MessagingGatewaySupport.setReplyMapper(OutboundMessageMapper)
public S shouldTrack(boolean shouldTrack)
shouldTrack
- 追跡フラグ MessagingGatewaySupport.setShouldTrack(boolean)