@ManagedResource public class LifecycleMessageHandlerMetrics extends Object implements MessageHandlerMetrics, 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(Lifecycle lifecycle,
MessageHandlerMetrics delegate) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveCount() |
Statistics |
getDuration() |
int |
getErrorCount() |
int |
getHandleCount() |
double |
getMaxDuration() |
double |
getMeanDuration() |
double |
getMinDuration() |
String |
getName() |
String |
getSource() |
double |
getStandardDeviationDuration() |
boolean |
isRunning() |
void |
reset() |
void |
start() |
void |
stop() |
public LifecycleMessageHandlerMetrics(Lifecycle lifecycle, MessageHandlerMetrics delegate)
@ManagedAttribute public boolean isRunning()
@ManagedOperation public void start()
@ManagedOperation public void stop()
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 String getName()
getName
in interface MessageHandlerMetrics
public String getSource()
getSource
in interface MessageHandlerMetrics
public int getActiveCount()
getActiveCount
in interface MessageHandlerMetrics