@IntegrationManagedResource public abstract class MessageHandlerSupport extends IntegrationObjectSupport implements TrackableComponent, Orderable, IntegrationManagement, IntegrationPattern
MessagingException
s.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public boolean isLoggingEnabled()
IntegrationManagement
isLoggingEnabled
in interface IntegrationManagement
public void setLoggingEnabled(boolean loggingEnabled)
IntegrationManagement
setLoggingEnabled
in interface IntegrationManagement
loggingEnabled
- dalse to disable.public void registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
IntegrationManagement
MetricsCaptor
registerMetricsCaptor
in interface IntegrationManagement
metricsCaptorToRegister
- the captor.protected MetricsCaptor getMetricsCaptor()
public void setOrder(int order)
Orderable
public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public void setShouldTrack(boolean shouldTrack)
setShouldTrack
in interface TrackableComponent
protected boolean shouldTrack()
public IntegrationManagement.ManagementOverrides getOverrides()
IntegrationManagement
getOverrides
in interface IntegrationManagement
public IntegrationPatternType getIntegrationPatternType()
IntegrationPattern
getIntegrationPatternType
in interface IntegrationPattern
IntegrationPatternType
this component implements.protected TimerFacade sendTimer()
protected TimerFacade buildSendTimer(boolean success, String exception)
public void setManagedName(String managedName)
setManagedName
in interface IntegrationManagement
public String getManagedName()
getManagedName
in interface IntegrationManagement
public void setManagedType(String managedType)
setManagedType
in interface IntegrationManagement
public String getManagedType()
getManagedType
in interface IntegrationManagement
public void destroy()
destroy
in interface DisposableBean
destroy
in interface IntegrationManagement