クラス 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、ExpressionCapable、Orderable、IntegrationPattern、NamedComponent、IntegrationManagement、TrackableComponent、MessageHandler、reactor.core.CoreSubscriber<Message<?>>
public class NotificationPublishingMessageHandler extends AbstractMessageHandler
受信メッセージを JMX
NotificationSE として公開するための AbstractMessageHandler 実装。OutboundMessageMapper は、Message を NotificationSE に変換するために使用されます。- 導入:
- 2.0
- 作成者:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan, Trung Pham
ネストされたクラスの要約
ネストされたクラス 修飾子と型 クラス 説明 static classNotificationPublishingMessageHandler.PublisherDelegate登録する実際の 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コンストラクターの概要
コンストラクター コンストラクター 説明 NotificationPublishingMessageHandler(StringSE objectName)NotificationPublishingMessageHandler(ObjectNameSE objectName)メソッドのサマリー
修飾子と型 メソッド 説明 StringSEgetComponentType()サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected voidhandleMessageInternal(Message<?> message)voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidsetDefaultNotificationType(StringSE defaultNotificationType)明示的な通知マッパーが構成されていない場合にデフォルトで使用する通知型を表すドット区切りの文字列を指定します。voidsetNotificationMapper(OutboundMessageMapper<NotificationSE> notificationMapper)メッセージから通知を作成するためのマッパーを設定します。クラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribeクラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, 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 から継承されたメソッド
getThisAsインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
メソッドの詳細
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