@ManagedResource public class LifecycleMessageHandlerMetrics extends java.lang.Object implements MessageHandlerMetrics, org.springframework.context.Lifecycle
MessageHandlerMetrics that exposes in addition the Lifecycle interface. The lifecycle methods can
be used to stop and start polling endpoints, for instance, in a live system.| Constructor and Description |
|---|
LifecycleMessageHandlerMetrics(org.springframework.context.Lifecycle lifecycle,
MessageHandlerMetrics delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount() |
Statistics |
getDuration() |
int |
getErrorCount() |
int |
getHandleCount() |
double |
getMaxDuration() |
double |
getMeanDuration() |
double |
getMinDuration() |
java.lang.String |
getName() |
java.lang.String |
getSource() |
double |
getStandardDeviationDuration() |
boolean |
isRunning() |
void |
reset() |
void |
start() |
void |
stop() |
public LifecycleMessageHandlerMetrics(org.springframework.context.Lifecycle lifecycle,
MessageHandlerMetrics delegate)
@ManagedAttribute public boolean isRunning()
isRunning in interface org.springframework.context.Lifecycle@ManagedOperation public void start()
start in interface org.springframework.context.Lifecycle@ManagedOperation public void stop()
stop in interface org.springframework.context.Lifecyclepublic void reset()
reset in interface MessageHandlerMetricspublic int getErrorCount()
getErrorCount in interface MessageHandlerMetricspublic int getHandleCount()
getHandleCount in interface MessageHandlerMetricspublic double getMaxDuration()
getMaxDuration in interface MessageHandlerMetricspublic double getMeanDuration()
getMeanDuration in interface MessageHandlerMetricspublic double getMinDuration()
getMinDuration in interface MessageHandlerMetricspublic double getStandardDeviationDuration()
getStandardDeviationDuration in interface MessageHandlerMetricspublic Statistics getDuration()
getDuration in interface MessageHandlerMetricspublic java.lang.String getName()
getName in interface MessageHandlerMetricspublic java.lang.String getSource()
getSource in interface MessageHandlerMetricspublic int getActiveCount()
getActiveCount in interface MessageHandlerMetrics