クラス JmsMessageDrivenEndpoint
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.jms.JmsMessageDrivenEndpoint
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、SmartInitializingSingleton
、ApplicationContextAware
、Lifecycle
、Phased
、SmartLifecycle
、ExpressionCapable
、OrderlyShutdownCapable
、MessageProducer
、IntegrationPattern
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
、ManageableLifecycle
、ManageableSmartLifecycle
、TrackableComponent
public class JmsMessageDrivenEndpoint
extends MessageProducerSupport
implements OrderlyShutdownCapable
JMS メッセージを受信し、Spring Integration メッセージに変換して、結果をチャネルに送信するメッセージ駆動型エンドポイント。
- 作成者:
- Mark Fisher, Oleg Zhurakousky, 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
コンストラクターのサマリー
コンストラクターコンストラクター説明JmsMessageDrivenEndpoint
(AbstractMessageListenerContainer listenerContainer, ChannelPublishingJmsMessageListener listener) 外部で構成されたコンテナーを使用してインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明int
スケジューラー、エグゼキューターなどの通常のシャットダウンの後、シャットダウン遅延が経過した後、残りのアクティブなスケジューラー / エグゼキュータースレッドの強制シャットダウンの前に呼び出されます。オプションで、まだ処理中のアクティブなメッセージの数を返すことができます。void
int
シャットダウンが始まる前に呼び出されます。void
destroy()
protected void
doStart()
デフォルトでは何もしません。protected void
doStop()
デフォルトでは何もしません。サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
registerMetricsCaptor
(MetricsCaptor captor) MetricsCaptor
を注入します。void
registerObservationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) ObservationRegistry
を注入します。void
setApplicationContext
(ApplicationContext applicationContext) void
setErrorChannel
(MessageChannel errorChannel) void
setErrorChannelName
(StringSE errorChannelName) エラーチャネル名を設定します。void
setObservationConvention
(MessageReceiverObservationConvention observationConvention) void
setOutputChannel
(MessageChannel outputChannel) 生成されたメッセージの送信先となるMessageChannel
を指定します。void
setOutputChannelName
(StringSE outputChannelName) 出力チャネル名を設定します。提供されている場合、outputChannel
をオーバーライドします。void
setSendTimeout
(long sendTimeout) 送信操作に使用するデフォルトのタイムアウト値を構成します。void
setSessionAcknowledgeMode
(StringSE sessionAcknowledgeMode) リスナーコンテナーにセッション確認応答モードを設定します。void
setShouldTrack
(boolean shouldTrack) void
setShutdownContainerOnStop
(boolean shutdownContainerOnStop) エンドポイントが停止しているときにリスナーコンテナーがシャットダウンしないようにするには、false
に設定します。クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, isObserved, sendErrorMessageIfNecessary, sendMessage, setErrorMessageStrategy, subscribeToPublisher
クラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたメソッド
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, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, setLoggingEnabled, setManagedName, setManagedType
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
JmsMessageDrivenEndpoint
public JmsMessageDrivenEndpoint(AbstractMessageListenerContainer listenerContainer, ChannelPublishingJmsMessageListener listener) 外部で構成されたコンテナーを使用してインスタンスを作成します。- パラメーター:
listenerContainer
- コンテナー。listener
- リスナー。
メソッドの詳細
setSessionAcknowledgeMode
リスナーコンテナーでセッション確認モードを設定します。外部コンテナーが提供されている場合でも、コンテナー設定を上書きします。外部コンテナーが提供されている場合はデフォルトで null(コンテナーを変更しない)、またはフレームワークが暗黙のDefaultMessageListenerContainer
を作成する場合は `transacted`。- パラメーター:
sessionAcknowledgeMode
- 承認モード。
setOutputChannel
インターフェースからコピーされた説明:MessageProducer
生成されたメッセージの送信先となるMessageChannel
を指定します。- 次で指定:
- インターフェース
MessageProducer
のsetOutputChannel
- オーバーライド:
- クラス
MessageProducerSupport
のsetOutputChannel
- パラメーター:
outputChannel
- 出力チャネル。
setOutputChannelName
クラスからコピーされた説明:MessageProducerSupport
出力チャネル名を設定します。提供されている場合、outputChannel
をオーバーライドします。- 次で指定:
- インターフェース
MessageProducer
のsetOutputChannelName
- オーバーライド:
- クラス
MessageProducerSupport
のsetOutputChannelName
- パラメーター:
outputChannelName
- チャンネル名。
setErrorChannel
- オーバーライド:
- クラス
MessageProducerSupport
のsetErrorChannel
setErrorChannelName
クラスからコピーされた説明:MessageProducerSupport
エラーチャネル名を設定します。エラーチャネルが提供されていない場合、このエンドポイントは例外をメッセージ駆動型ソースに伝播します。例外を完全に抑制するには、ここで "nullChannel" への参照を提供します。- オーバーライド:
- クラス
MessageProducerSupport
のsetErrorChannelName
- パラメーター:
errorChannelName
- エラーチャネル Bean 名。
setSendTimeout
public void setSendTimeout(long sendTimeout) クラスからコピーされた説明:MessageProducerSupport
送信操作に使用するデフォルトのタイムアウト値を構成します。個々のメッセージに対してオーバーライドされる場合があります。- オーバーライド:
- クラス
MessageProducerSupport
のsetSendTimeout
- パラメーター:
sendTimeout
- 「送信」操作のタイムアウト (ミリ秒)- 関連事項:
setShouldTrack
public void setShouldTrack(boolean shouldTrack) - 次で指定:
- インターフェース
TrackableComponent
のsetShouldTrack
- オーバーライド:
- クラス
MessageProducerSupport
のsetShouldTrack
setShutdownContainerOnStop
public void setShutdownContainerOnStop(boolean shutdownContainerOnStop) エンドポイントが停止しているときにリスナーコンテナーがシャットダウンしないようにするには、false
に設定します。そのように構成されている場合、コンテナー内のキャッシュされたコンシューマーはそのまま残ります。それ以外の場合、共有接続は閉じられ、リスナーの呼び出し元がシャットダウンされます。この動作は、バージョン 5.1 以降の新しい動作です。デフォルト: true。- パラメーター:
shutdownContainerOnStop
- シャットダウンしない場合は false。- 導入:
- 5.1
getListener
registerMetricsCaptor
インターフェースからコピーされた説明:IntegrationManagement
MetricsCaptor
を注入します。ObservationRegistry
が指定されている場合は無視されます。- 次で指定:
- インターフェース
IntegrationManagement
のregisterMetricsCaptor
- パラメーター:
captor
- キャプター。- 関連事項:
registerObservationRegistry
public void registerObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) インターフェースからコピーされた説明:IntegrationManagement
ObservationRegistry
を注入します。指定された場合、MetricsCaptor
は無視されます。メーターのキャプチャーは、提供されたObservationRegistry
でObservationHandler
として構成する必要があります。- 次で指定:
- インターフェース
IntegrationManagement
のregisterObservationRegistry
- オーバーライド:
- クラス
MessageProducerSupport
のregisterObservationRegistry
- パラメーター:
observationRegistry
- コンポーネントからの観察結果を公開するObservationRegistry
。- 関連事項:
setObservationConvention
クラスからコピーされた説明:MessageProducerSupport
IntegrationObservation.HANDLER
にカスタムMessageReceiverObservationConvention
を設定します。このコンポーネントに対してObservationRegistry
が構成されていない場合は無視されます。- オーバーライド:
- クラス
MessageProducerSupport
のsetObservationConvention
- パラメーター:
observationConvention
- 使用するMessageReceiverObservationConvention
。
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAware
のsetApplicationContext
- オーバーライド:
- クラス
IntegrationObjectSupport
のsetApplicationContext
- 例外:
BeansException
getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
IntegrationObjectSupport
のgetComponentType
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- 次で指定:
- インターフェース
SmartInitializingSingleton
のafterSingletonsInstantiated
- オーバーライド:
- クラス
MessageProducerSupport
のafterSingletonsInstantiated
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupport
のonInit
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。"lifecycleLock" によって保護されています。- オーバーライド:
- クラス
MessageProducerSupport
のdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
MessageProducerSupport
のdoStop
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBean
のdestroy
- 次で指定:
- インターフェース
IntegrationManagement
のdestroy
- オーバーライド:
- クラス
AbstractEndpoint
のdestroy
beforeShutdown
public int beforeShutdown()インターフェースからコピーされた説明:OrderlyShutdownCapable
シャットダウンが始まる前に呼び出されます。実装は、新しいメッセージの受け入れを停止する必要があります。オプションで、処理中のアクティブなメッセージの数を返すことができます。- 次で指定:
- インターフェース
OrderlyShutdownCapable
のbeforeShutdown
- 戻り値:
- 使用可能な場合、アクティブなメッセージの数。
afterShutdown
public int afterShutdown()インターフェースからコピーされた説明:OrderlyShutdownCapable
スケジューラー、エグゼキューターなどの通常のシャットダウンの後、シャットダウン遅延が経過した後、残りのアクティブなスケジューラー / エグゼキュータースレッドの強制シャットダウンの前に呼び出されます。オプションで、まだ処理中のアクティブなメッセージの数を返すことができます。- 次で指定:
- インターフェース
OrderlyShutdownCapable
のafterShutdown
- 戻り値:
- 使用可能な場合、アクティブなメッセージの数。