@IntegrationManagedResource public abstract class MessageHandlerSupport extends IntegrationObjectSupport implements MessageHandlerMetrics, ConfigurableMetricsAware<AbstractMessageHandlerMetrics>, TrackableComponent, Orderable, IntegrationPattern
MessagingException
s.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
MessageHandlerSupport() |
Modifier and Type | Method and Description |
---|---|
protected TimerFacade |
buildSendTimer(boolean success,
String exception) |
void |
configureMetrics(AbstractMessageHandlerMetrics metrics)
Deprecated.
in favor of Micrometer metrics.
|
void |
destroy() |
int |
getActiveCount()
Deprecated.
in favor of Micrometer metrics.
|
long |
getActiveCountLong()
Deprecated.
in favor of Micrometer metrics.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
Statistics |
getDuration()
Deprecated.
in favor of Micrometer metrics.
|
int |
getErrorCount()
Deprecated.
in favor of Micrometer metrics.
|
long |
getErrorCountLong()
Deprecated.
in favor of Micrometer metrics.
|
int |
getHandleCount()
Deprecated.
in favor of Micrometer metrics.
|
long |
getHandleCountLong()
Deprecated.
in favor of Micrometer metrics.
|
protected AbstractMessageHandlerMetrics |
getHandlerMetrics()
Deprecated.
in favor of Micrometer metrics.
|
IntegrationPatternType |
getIntegrationPatternType()
Return a pattern type this component implements.
|
String |
getManagedName() |
String |
getManagedType() |
double |
getMaxDuration()
Deprecated.
in favor of Micrometer metrics.
|
double |
getMeanDuration()
Deprecated.
in favor of Micrometer metrics.
|
protected MetricsCaptor |
getMetricsCaptor() |
double |
getMinDuration()
Deprecated.
in favor of Micrometer metrics.
|
int |
getOrder() |
IntegrationManagement.ManagementOverrides |
getOverrides()
Return the overrides.
|
double |
getStandardDeviationDuration()
Deprecated.
in favor of Micrometer metrics.
|
boolean |
isCountsEnabled()
Deprecated.
in favor of Micrometer metrics.
|
boolean |
isLoggingEnabled() |
boolean |
isStatsEnabled()
Deprecated.
in favor of Micrometer metrics.
|
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
Inject a
MetricsCaptor |
void |
reset()
Deprecated.
in favor of Micrometer metrics.
|
protected TimerFacade |
sendTimer() |
void |
setCountsEnabled(boolean countsEnabled)
Deprecated.
in favor of Micrometer metrics.
|
void |
setLoggingEnabled(boolean loggingEnabled) |
void |
setManagedName(String managedName) |
void |
setManagedType(String managedType) |
void |
setOrder(int order)
Set the order for this component.
|
void |
setShouldTrack(boolean shouldTrack) |
void |
setStatsEnabled(boolean statsEnabled)
Deprecated.
in favor of Micrometer metrics.
|
protected boolean |
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
errorCount, handleCount
getBeanName, getComponentName
public boolean isLoggingEnabled()
isLoggingEnabled
in interface IntegrationManagement
public void setLoggingEnabled(boolean loggingEnabled)
setLoggingEnabled
in interface IntegrationManagement
public void registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
IntegrationManagement
MetricsCaptor
registerMetricsCaptor
in interface IntegrationManagement
metricsCaptorToRegister
- the captor.@Deprecated protected AbstractMessageHandlerMetrics getHandlerMetrics()
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()
@Deprecated public void configureMetrics(AbstractMessageHandlerMetrics metrics)
configureMetrics
in interface ConfigurableMetricsAware<AbstractMessageHandlerMetrics>
public IntegrationManagement.ManagementOverrides getOverrides()
IntegrationManagement
getOverrides
in interface IntegrationManagement
public IntegrationPatternType getIntegrationPatternType()
IntegrationPattern
getIntegrationPatternType
in interface IntegrationPattern
IntegrationPatternType
this component implements.protected void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected TimerFacade sendTimer()
protected TimerFacade buildSendTimer(boolean success, String exception)
@Deprecated public void reset()
reset
in interface IntegrationManagement
@Deprecated public long getHandleCountLong()
getHandleCountLong
in interface MessageHandlerMetrics
@Deprecated public int getHandleCount()
getHandleCount
in interface MessageHandlerMetrics
@Deprecated public int getErrorCount()
getErrorCount
in interface MessageHandlerMetrics
@Deprecated public long getErrorCountLong()
getErrorCountLong
in interface MessageHandlerMetrics
@Deprecated public double getMeanDuration()
getMeanDuration
in interface MessageHandlerMetrics
@Deprecated public double getMinDuration()
getMinDuration
in interface MessageHandlerMetrics
@Deprecated public double getMaxDuration()
getMaxDuration
in interface MessageHandlerMetrics
@Deprecated public double getStandardDeviationDuration()
getStandardDeviationDuration
in interface MessageHandlerMetrics
@Deprecated public int getActiveCount()
getActiveCount
in interface MessageHandlerMetrics
@Deprecated public long getActiveCountLong()
getActiveCountLong
in interface MessageHandlerMetrics
@Deprecated public Statistics getDuration()
getDuration
in interface MessageHandlerMetrics
@Deprecated public void setStatsEnabled(boolean statsEnabled)
setStatsEnabled
in interface IntegrationStatsManagement
statsEnabled
- the statsEnabled@Deprecated public boolean isStatsEnabled()
isStatsEnabled
in interface IntegrationStatsManagement
@Deprecated public void setCountsEnabled(boolean countsEnabled)
setCountsEnabled
in interface IntegrationManagement
countsEnabled
- the countsEnabled@Deprecated public boolean isCountsEnabled()
isCountsEnabled
in interface IntegrationManagement
public void setManagedName(String managedName)
setManagedName
in interface MessageHandlerMetrics
public String getManagedName()
getManagedName
in interface MessageHandlerMetrics
public void setManagedType(String managedType)
setManagedType
in interface MessageHandlerMetrics
public String getManagedType()
getManagedType
in interface MessageHandlerMetrics
public void destroy()
destroy
in interface DisposableBean
destroy
in interface IntegrationManagement