public class NotificationPublishingMessageHandler extends AbstractMessageHandler
AbstractMessageHandler
implementation to publish an incoming message
as a JMX Notification
.
The OutboundMessageMapper
is used to convert a Message
to the Notification
.Modifier and Type | Class and Description |
---|---|
static class |
NotificationPublishingMessageHandler.PublisherDelegate
Simple class used for the actual MBean instances to be registered.
|
IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
NotificationPublishingMessageHandler(ObjectName objectName) |
NotificationPublishingMessageHandler(String objectName) |
Modifier and Type | Method and Description |
---|---|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(Message<?> message) |
void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setDefaultNotificationType(String defaultNotificationType)
Specify a dot-delimited String representing the Notification type to
use by default when no explicit Notification mapper
has been configured.
|
void |
setNotificationMapper(OutboundMessageMapper<Notification> notificationMapper)
Set a mapper for creating Notifications from a Message.
|
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public NotificationPublishingMessageHandler(ObjectName objectName)
public NotificationPublishingMessageHandler(String objectName)
public void setNotificationMapper(@Nullable OutboundMessageMapper<Notification> notificationMapper)
notificationMapper
- The notification mapper.public void setDefaultNotificationType(String defaultNotificationType)
defaultNotificationType
- The default notification type.public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class MessageHandlerSupport
public final void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void handleMessageInternal(Message<?> message)
handleMessageInternal
in class AbstractMessageHandler