public class NotificationPublishingMessageHandler extends AbstractMessageHandler implements BeanFactoryAware, InitializingBean
loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 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.
|
configureMetrics, enableCounts, enableStats, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, reset, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrackafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetBeanFactoryafterPropertiesSetgetComponentNamepublic NotificationPublishingMessageHandler(ObjectName objectName)
public NotificationPublishingMessageHandler(String objectName)
public void setNotificationMapper(OutboundMessageMapper<Notification> notificationMapper)
notificationMapper - The notification mapper.public void setDefaultNotificationType(String defaultNotificationType)
defaultNotificationType - The default notification type.public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerpublic final void onInit()
throws Exception
IntegrationObjectSupportonInit in class AbstractMessageHandlerException - Any exception.protected void handleMessageInternal(Message<?> message) throws Exception
handleMessageInternal in class AbstractMessageHandlerException