S
- ターゲット MessageProducerSpec
実装型。P
- ターゲット MessageProducerSupport
実装型。public abstract class MessageProducerSpec<S extends MessageProducerSpec<S,P>,P extends MessageProducerSupport> extends IntegrationComponentSpec<S,P>
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
コンストラクターと説明 |
---|
MessageProducerSpec(P producer) |
修飾子と型 | メソッドと説明 |
---|---|
S | autoStartup(boolean autoStartup) |
S | errorChannel(MessageChannel errorChannel) エラーメッセージの送信先となる MessageChannel を構成します。 |
S | errorChannel(StringSE errorChannel) エラーメッセージの送信先となる MessageChannel の Bean 名を設定します。 |
S | errorMessageStrategy(ErrorMessageStrategy errorMessageStrategy) 例外が発生したときにエラーメッセージを作成するために使用する ErrorMessageStrategy を設定します。 |
S | id(StringSE id) コンポーネント識別子を構成します。 |
S | outputChannel(MessageChannel outputChannel) MessageProducer の outputChannel を指定します |
S | outputChannel(StringSE outputChannel) MessageProducer の outputChannel の Bean 名を指定します |
S | phase(int phase) |
S | sendTimeout(long sendTimeout) 送信操作に使用するデフォルトのタイムアウト値を構成します。 |
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 MessageProducerSpec(P producer)
public S id(StringSE id)
beanName
として使用されます。メッセージプロデューサーの Bean 名を設定します。IntegrationComponentSpec<S extends MessageProducerSpec<S, P>,P extends MessageProducerSupport>
の id
id
- ID。public S phase(int phase)
phase
- フェーズ。SmartLifecycle
public S autoStartup(boolean autoStartup)
autoStartup
- autoStartup。SmartLifecycle
public S outputChannel(MessageChannel outputChannel)
MessageProducer
の outputChannel
を指定します outputChannel
- outputChannel。MessageProducerSupport.setOutputChannel(MessageChannel)
public S outputChannel(StringSE outputChannel)
MessageProducer
の outputChannel
の Bean 名を指定します outputChannel
- outputChannel Bean の名前。MessageProducerSupport.setOutputChannelName(String)
public S errorChannel(MessageChannel errorChannel)
MessageChannel
を構成します。errorChannel
- errorChannel。MessageProducerSupport.setErrorChannel(MessageChannel)
public S errorChannel(StringSE errorChannel)
MessageChannel
の Bean 名を設定します。errorChannel
- errorChannel Bean の名前。MessageProducerSupport.setErrorChannelName(String)
public S sendTimeout(long sendTimeout)
sendTimeout
- ミリ秒単位の送信タイムアウト MessageProducerSupport.setSendTimeout(long)
public S shouldTrack(boolean shouldTrack)
shouldTrack
- 追跡フラグ MessageProducerSupport.setShouldTrack(boolean)
public S errorMessageStrategy(ErrorMessageStrategy errorMessageStrategy)
ErrorMessageStrategy
を設定します。errorMessageStrategy
- ErrorMessageStrategy
MessageProducerSupport.setErrorMessageStrategy(ErrorMessageStrategy)