@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.Lifecycle
public void reset()
reset
in interface MessageHandlerMetrics
public int getErrorCount()
getErrorCount
in interface MessageHandlerMetrics
public int getHandleCount()
getHandleCount
in interface MessageHandlerMetrics
public double getMaxDuration()
getMaxDuration
in interface MessageHandlerMetrics
public double getMeanDuration()
getMeanDuration
in interface MessageHandlerMetrics
public double getMinDuration()
getMinDuration
in interface MessageHandlerMetrics
public double getStandardDeviationDuration()
getStandardDeviationDuration
in interface MessageHandlerMetrics
public Statistics getDuration()
getDuration
in interface MessageHandlerMetrics
public java.lang.String getName()
getName
in interface MessageHandlerMetrics
public java.lang.String getSource()
getSource
in interface MessageHandlerMetrics
public int getActiveCount()
getActiveCount
in interface MessageHandlerMetrics