org.springframework.integration.monitor
Class LifecycleMessageSourceMetrics
java.lang.Object
org.springframework.integration.monitor.LifecycleMessageSourceMetrics
- All Implemented Interfaces:
- Lifecycle, MessageSourceMetrics
@ManagedResource
public class LifecycleMessageSourceMetrics
- extends java.lang.Object
- implements MessageSourceMetrics, Lifecycle
A 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.
- Since:
- 2.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LifecycleMessageSourceMetrics
public LifecycleMessageSourceMetrics(Lifecycle lifecycle,
MessageSourceMetrics delegate)
reset
@ManagedOperation
public void reset()
- Specified by:
reset
in interface MessageSourceMetrics
isRunning
@ManagedAttribute
public boolean isRunning()
- Specified by:
isRunning
in interface Lifecycle
start
@ManagedOperation
public void start()
- Specified by:
start
in interface Lifecycle
stop
@ManagedOperation
public void stop()
- Specified by:
stop
in interface Lifecycle
getName
public java.lang.String getName()
- Specified by:
getName
in interface MessageSourceMetrics
getSource
public java.lang.String getSource()
- Specified by:
getSource
in interface MessageSourceMetrics
getMessageCount
public int getMessageCount()
- Specified by:
getMessageCount
in interface MessageSourceMetrics
- Returns:
- int
- See Also:
MessageSourceMetrics.getMessageCount()