クラス NotificationPublishingMessageHandler
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.jmx.NotificationPublishingMessageHandler
- 実装されたすべてのインターフェース:
org.reactivestreams.Subscriber<Message<?>>
、Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、ApplicationContextAware
、Ordered
、ComponentSourceAware
、ExpressionCapable
、Orderable
、IntegrationPattern
、NamedComponent
、IntegrationManagement
、TrackableComponent
、MessageHandler
、reactor.core.CoreSubscriber<Message<?>>
受信メッセージを JMX
Notification
SE として公開するための AbstractMessageHandler
実装。OutboundMessageMapper
は、Message
を Notification
SE に変換するために使用されます。- 導入:
- 2.0
- 作成者:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan, Trung Pham, Ngoc Nhan
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明static class
登録する実際の MBean インスタンスに使用される単純なクラス。インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドのサマリー
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターの概要
コンストラクターコンストラクター説明NotificationPublishingMessageHandler
(StringSE objectName) 指定されたオブジェクト名に基づいてインスタンスを構築します。NotificationPublishingMessageHandler
(ObjectNameSE objectName) 指定されたオブジェクト名に基づいてインスタンスを構築します。メソッドのサマリー
修飾子と型メソッド説明サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected void
handleMessageInternal
(Message<?> message) final void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
setDefaultNotificationType
(StringSE defaultNotificationType) 明示的な通知マッパーが構成されていない場合にデフォルトで使用する通知型を表すドット区切りの文字列を指定します。void
setNotificationMapper
(OutboundMessageMapper<NotificationSE> notificationMapper) メッセージから通知を作成するためのマッパーを設定します。クラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConvention
クラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContext
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAs
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
NotificationPublishingMessageHandler
指定されたオブジェクト名に基づいてインスタンスを構築します。- パラメーター:
objectName
- 通知に使用するObjectName
SE。
NotificationPublishingMessageHandler
指定されたオブジェクト名に基づいてインスタンスを構築します。- パラメーター:
objectName
- 通知に使用するオブジェクト名。
メソッドの詳細
setNotificationMapper
public void setNotificationMapper(@Nullable OutboundMessageMapper<NotificationSE> notificationMapper) メッセージから通知を作成するためのマッパーを設定します。指定されていない場合は、デフォルトの実装が使用され、文字列型のペイロードは通知の「メッセージ」として渡され、他のすべてのペイロード型は通知の "userData" として渡されます。- パラメーター:
notificationMapper
- 通知マッパー。
setDefaultNotificationType
明示的な通知マッパーが構成されていない場合にデフォルトで使用する通知型を表すドット区切りの文字列を指定します。指定しない場合、通知にマップされる各メッセージに通知型のヘッダーが必要になります。- パラメーター:
defaultNotificationType
- デフォルトの通知型。
getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
MessageHandlerSupport
のgetComponentType
onInit
public final void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
IntegrationObjectSupport
のonInit
handleMessageInternal
- 次で指定:
- クラス
AbstractMessageHandler
のhandleMessageInternal