@ManagedResource public class LifecycleMessageSourceMetrics extends Object implements MessageSourceMetrics, Lifecycle
MessageSourceMetrics
that exposes in addition the Lifecycle
interface. The lifecycle methods can
be used to start and stop polling endpoints, for instance, in a live system.Constructor and Description |
---|
LifecycleMessageSourceMetrics(Lifecycle lifecycle,
MessageSourceMetrics delegate) |
public LifecycleMessageSourceMetrics(Lifecycle lifecycle, MessageSourceMetrics delegate)
@ManagedOperation public void reset()
reset
in interface MessageSourceMetrics
@ManagedAttribute public boolean isRunning()
@ManagedOperation public void start()
@ManagedOperation public void stop()
public String getName()
getName
in interface MessageSourceMetrics
public String getSource()
getSource
in interface MessageSourceMetrics
public int getMessageCount()
getMessageCount
in interface MessageSourceMetrics
MessageSourceMetrics.getMessageCount()