@IntegrationManagedResource public abstract class MessageHandlerSupport extends IntegrationObjectSupport implements TrackableComponent, Orderable, IntegrationManagement, IntegrationPattern
MessagingExceptions.IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
MessageHandlerSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected TimerFacade |
buildSendTimer(boolean success,
String exception) |
void |
destroy() |
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
IntegrationPatternType |
getIntegrationPatternType()
Return a pattern type this component implements.
|
String |
getManagedName() |
String |
getManagedType() |
protected MetricsCaptor |
getMetricsCaptor() |
int |
getOrder() |
IntegrationManagement.ManagementOverrides |
getOverrides()
Return the overrides.
|
boolean |
isLoggingEnabled()
Return whether logging is enabled.
|
void |
registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
Inject a
MetricsCaptor |
protected TimerFacade |
sendTimer() |
void |
setLoggingEnabled(boolean loggingEnabled)
Enable logging or not.
|
void |
setManagedName(String managedName) |
void |
setManagedType(String managedType) |
void |
setOrder(int order)
Set the order for this component.
|
void |
setShouldTrack(boolean shouldTrack) |
protected boolean |
shouldTrack() |
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetThisAsgetBeanName, getComponentNamepublic boolean isLoggingEnabled()
IntegrationManagementisLoggingEnabled in interface IntegrationManagementpublic void setLoggingEnabled(boolean loggingEnabled)
IntegrationManagementsetLoggingEnabled in interface IntegrationManagementloggingEnabled - dalse to disable.public void registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
IntegrationManagementMetricsCaptorregisterMetricsCaptor in interface IntegrationManagementmetricsCaptorToRegister - the captor.protected MetricsCaptor getMetricsCaptor()
public void setOrder(int order)
Orderablepublic String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic void setShouldTrack(boolean shouldTrack)
setShouldTrack in interface TrackableComponentprotected boolean shouldTrack()
public IntegrationManagement.ManagementOverrides getOverrides()
IntegrationManagementgetOverrides in interface IntegrationManagementpublic IntegrationPatternType getIntegrationPatternType()
IntegrationPatterngetIntegrationPatternType in interface IntegrationPatternIntegrationPatternType this component implements.protected TimerFacade sendTimer()
protected TimerFacade buildSendTimer(boolean success, String exception)
public void setManagedName(String managedName)
setManagedName in interface IntegrationManagementpublic String getManagedName()
getManagedName in interface IntegrationManagementpublic void setManagedType(String managedType)
setManagedType in interface IntegrationManagementpublic String getManagedType()
getManagedType in interface IntegrationManagementpublic void destroy()
destroy in interface DisposableBeandestroy in interface IntegrationManagement