クラス JmsMessageDrivenEndpoint
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.jms.inbound.JmsMessageDrivenEndpoint
- 実装されているすべてのインターフェース:
Aware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、SmartInitializingSingleton、ApplicationContextAware、Lifecycle、Phased、SmartLifecycle、ComponentSourceAware、ExpressionCapable、OrderlyShutdownCapable、MessageProducer、IntegrationPattern、NamedComponent、IntegrationInboundManagement、IntegrationManagement、ManageableLifecycle、ManageableSmartLifecycle、TrackableComponent
- 既知の直属サブクラス
JmsMessageDrivenEndpoint
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 から継承されたフィールド
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スケジューラー、エグゼキューターなどの通常のシャットダウンの後、シャットダウン遅延が経過した後、残りのアクティブなスケジューラー / エグゼキュータースレッドの強制シャットダウンの前に呼び出されます。オプションで、まだ処理中のアクティブなメッセージの数を返すことができます。voidintシャットダウンが始まる前に呼び出されます。voiddestroy()protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。protected voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidregisterMetricsCaptor(MetricsCaptor captor) MetricsCaptorを注入します。voidregisterObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) ObservationRegistryを注入します。voidsetApplicationContext(ApplicationContext applicationContext) voidsetErrorChannel(MessageChannel errorChannel) voidsetErrorChannelName(StringSE errorChannelName) エラーチャネル名を設定します。voidsetErrorMessageStrategy(ErrorMessageStrategy errorMessageStrategy) 例外が発生したときにエラーメッセージを作成するために使用するErrorMessageStrategyを設定します。voidsetObservationConvention(@Nullable MessageReceiverObservationConvention observationConvention) voidsetOutputChannel(MessageChannel outputChannel) 生成されたメッセージの送信先となるMessageChannelを指定します。voidsetOutputChannelName(StringSE outputChannelName) 出力チャネル名を設定します。提供されている場合、outputChannelをオーバーライドします。voidsetSendTimeout(long sendTimeout) 送信操作に使用するデフォルトのタイムアウト値を構成します。voidsetSessionAcknowledgeMode(StringSE sessionAcknowledgeMode) リスナーコンテナーにセッション確認応答モードを設定します。voidsetShouldTrack(boolean shouldTrack) voidsetShutdownContainerOnStop(boolean shutdownContainerOnStop) エンドポイントが停止しているときにリスナーコンテナーがシャットダウンしないようにするには、falseに設定します。クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getRequiredOutputChannel, isObserved, sendErrorMessageIfNecessary, sendMessage, 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, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, 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 から継承されたメソッド
getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, setLoggingEnabled, setManagedName, setManagedTypeインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
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
setErrorMessageStrategy
クラスからコピーされた説明:MessageProducerSupport例外が発生したときにエラーメッセージを作成するために使用するErrorMessageStrategyを設定します。デフォルトはDefaultErrorMessageStrategyです。- オーバーライド:
- クラス
MessageProducerSupportのsetErrorMessageStrategy - パラメーター:
errorMessageStrategy-ErrorMessageStrategy
setShutdownContainerOnStop
public void setShutdownContainerOnStop(boolean shutdownContainerOnStop) エンドポイントの停止時にリスナーコンテナーがシャットダウンしないようにするには、falseに設定します。そのように設定されている場合、コンテナー内にキャッシュされたコンシューマーはそのまま残ります。そうでない場合、共有接続が閉じられ、リスナー呼び出し側がシャットダウンされます。この動作はバージョン 5.1 以降で新しく追加されました。デフォルト: true。- パラメーター:
shutdownContainerOnStop- シャットダウンしない場合は false。- 導入:
- 5.1
getListener
registerMetricsCaptor
インターフェースからコピーされた説明:IntegrationManagementMetricsCaptorを注入します。ObservationRegistryが指定されている場合は無視されます。- 次で指定:
- インターフェース
IntegrationManagementのregisterMetricsCaptor - パラメーター:
captor- キャプター。- 関連事項:
registerObservationRegistry
public void registerObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) インターフェースからコピーされた説明:IntegrationManagementObservationRegistryを注入します。指定された場合、MetricsCaptorは無視されます。メーターのキャプチャーは、提供されたObservationRegistryでObservationHandlerとして構成する必要があります。- 次で指定:
- インターフェース
IntegrationManagementのregisterObservationRegistry - オーバーライド:
- クラス
MessageProducerSupportのregisterObservationRegistry - パラメーター:
observationRegistry- コンポーネントからの観測結果を公開するObservationRegistry。- 関連事項:
setObservationConvention
public void setObservationConvention(@Nullable MessageReceiverObservationConvention observationConvention) クラスからコピーされた説明:MessageProducerSupportIntegrationObservation.HANDLERにカスタムMessageReceiverObservationConventionを設定します。このコンポーネントに対してObservationRegistryが構成されていない場合は無視されます。- オーバーライド:
- クラス
MessageProducerSupportのsetObservationConvention - パラメーター:
observationConvention- 使用するMessageReceiverObservationConvention。
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAwareのsetApplicationContext - オーバーライド:
- クラス
IntegrationObjectSupportのsetApplicationContext - 例外:
BeansException
getComponentType
- 次で指定:
- インターフェース
NamedComponentのgetComponentType - オーバーライド:
- クラス
MessageProducerSupportの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 - 戻り値:
- 使用可能な場合、アクティブなメッセージの数。