@IntegrationManagedResource 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) |
| Modifier and Type | Method and Description |
|---|---|
String |
getManagedName() |
String |
getManagedType() |
int |
getMessageCount() |
long |
getMessageCountLong() |
boolean |
isCountsEnabled() |
boolean |
isLoggingEnabled() |
boolean |
isRunning() |
void |
reset() |
void |
setCountsEnabled(boolean countsEnabled) |
void |
setLoggingEnabled(boolean enabled) |
void |
setManagedName(String name) |
void |
setManagedType(String source) |
void |
start() |
void |
stop() |
public LifecycleMessageSourceMetrics(Lifecycle lifecycle, MessageSourceMetrics delegate)
@ManagedOperation public void reset()
reset in interface IntegrationManagement@ManagedAttribute public boolean isRunning()
@ManagedOperation public void start()
@ManagedOperation public void stop()
public String getManagedName()
getManagedName in interface MessageSourceMetricspublic String getManagedType()
getManagedType in interface MessageSourceMetricspublic int getMessageCount()
getMessageCount in interface MessageSourceMetricspublic long getMessageCountLong()
getMessageCountLong in interface MessageSourceMetricspublic void setCountsEnabled(boolean countsEnabled)
setCountsEnabled in interface IntegrationManagementpublic boolean isCountsEnabled()
isCountsEnabled in interface IntegrationManagementpublic void setLoggingEnabled(boolean enabled)
setLoggingEnabled in interface IntegrationManagementpublic boolean isLoggingEnabled()
isLoggingEnabled in interface IntegrationManagementpublic void setManagedName(String name)
setManagedName in interface MessageSourceMetricspublic void setManagedType(String source)
setManagedType in interface MessageSourceMetrics