@IntegrationManagedResource public abstract class AbstractMessageHandler extends IntegrationObjectSupport implements MessageHandler, MessageHandlerMetrics, ConfigurableMetricsAware<AbstractMessageHandlerMetrics>, TrackableComponent, Orderable, reactor.core.CoreSubscriber<Message<?>>
MessagingExceptions.IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AbstractMessageHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureMetrics(AbstractMessageHandlerMetrics metrics) |
void |
destroy() |
int |
getActiveCount() |
long |
getActiveCountLong() |
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
Statistics |
getDuration() |
int |
getErrorCount() |
long |
getErrorCountLong() |
int |
getHandleCount() |
long |
getHandleCountLong() |
String |
getManagedName() |
String |
getManagedType() |
double |
getMaxDuration() |
double |
getMeanDuration() |
protected MetricsCaptor |
getMetricsCaptor() |
double |
getMinDuration() |
int |
getOrder() |
IntegrationManagement.ManagementOverrides |
getOverrides()
Return the overrides.
|
double |
getStandardDeviationDuration() |
void |
handleMessage(Message<?> messageArg) |
protected abstract void |
handleMessageInternal(Message<?> message) |
boolean |
isCountsEnabled() |
boolean |
isLoggingEnabled() |
boolean |
isStatsEnabled() |
void |
onComplete() |
void |
onError(Throwable throwable) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
onNext(Message<?> message) |
void |
onSubscribe(org.reactivestreams.Subscription subscription) |
void |
registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
Inject a
MetricsCaptor |
void |
reset() |
void |
setCountsEnabled(boolean countsEnabled) |
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) |
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiterrorCount, handleCountgetBeanName, getComponentNamepublic boolean isLoggingEnabled()
isLoggingEnabled in interface IntegrationManagementpublic void setLoggingEnabled(boolean loggingEnabled)
setLoggingEnabled in interface IntegrationManagementpublic void registerMetricsCaptor(MetricsCaptor metricsCaptorToRegister)
IntegrationManagementMetricsCaptorregisterMetricsCaptor in interface IntegrationManagementmetricsCaptorToRegister - the captor.@Nullable 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 TrackableComponentpublic void configureMetrics(AbstractMessageHandlerMetrics metrics)
configureMetrics in interface ConfigurableMetricsAware<AbstractMessageHandlerMetrics>public IntegrationManagement.ManagementOverrides getOverrides()
IntegrationManagementgetOverrides in interface IntegrationManagementprotected void onInit()
IntegrationObjectSupportonInit in class IntegrationObjectSupportpublic void handleMessage(Message<?> messageArg)
handleMessage in interface MessageHandlerpublic void onSubscribe(org.reactivestreams.Subscription subscription)
public void onNext(Message<?> message)
onNext in interface org.reactivestreams.Subscriber<Message<?>>public void onError(Throwable throwable)
onError in interface org.reactivestreams.Subscriber<Message<?>>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<Message<?>>protected abstract void handleMessageInternal(Message<?> message)
public void reset()
reset in interface IntegrationManagementpublic long getHandleCountLong()
getHandleCountLong in interface MessageHandlerMetricspublic int getHandleCount()
getHandleCount in interface MessageHandlerMetricspublic int getErrorCount()
getErrorCount in interface MessageHandlerMetricspublic long getErrorCountLong()
getErrorCountLong in interface MessageHandlerMetricspublic double getMeanDuration()
getMeanDuration in interface MessageHandlerMetricspublic double getMinDuration()
getMinDuration in interface MessageHandlerMetricspublic double getMaxDuration()
getMaxDuration in interface MessageHandlerMetricspublic double getStandardDeviationDuration()
getStandardDeviationDuration in interface MessageHandlerMetricspublic int getActiveCount()
getActiveCount in interface MessageHandlerMetricspublic long getActiveCountLong()
getActiveCountLong in interface MessageHandlerMetricspublic Statistics getDuration()
getDuration in interface MessageHandlerMetricspublic void setStatsEnabled(boolean statsEnabled)
setStatsEnabled in interface IntegrationStatsManagementpublic boolean isStatsEnabled()
isStatsEnabled in interface IntegrationStatsManagementpublic void setCountsEnabled(boolean countsEnabled)
setCountsEnabled in interface IntegrationManagementpublic boolean isCountsEnabled()
isCountsEnabled in interface IntegrationManagementpublic void setManagedName(String managedName)
setManagedName in interface MessageHandlerMetricspublic String getManagedName()
getManagedName in interface MessageHandlerMetricspublic void setManagedType(String managedType)
setManagedType in interface MessageHandlerMetricspublic String getManagedType()
getManagedType in interface MessageHandlerMetricspublic void destroy()
destroy in interface DisposableBeandestroy in interface IntegrationManagement