@ManagedResource(description="Managed ConsumerCache") public class ManagedConsumerCache extends ManagedService implements ManagedConsumerCacheMBean
Constructor and Description |
---|
ManagedConsumerCache(CamelContext context,
ConsumerCache consumerCache) |
Modifier and Type | Method and Description |
---|---|
ConsumerCache |
getConsumerCache() |
Long |
getEvicted() |
Long |
getHits() |
Integer |
getMaximumCacheSize() |
Long |
getMisses() |
Integer |
getSize() |
String |
getSource() |
void |
purge() |
void |
resetStatistics() |
getCamelId, getCamelManagementName, getContext, getInstance, getRoute, getRouteId, getService, getServiceType, getState, init, isStaticService, isSupportSuspension, isSuspended, resume, setRoute, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCamelId, getCamelManagementName, getRouteId, getServiceType, getState, isStaticService, isSupportSuspension, isSuspended, resume, start, stop, suspend
public ManagedConsumerCache(CamelContext context, ConsumerCache consumerCache)
public ConsumerCache getConsumerCache()
public String getSource()
getSource
in interface ManagedConsumerCacheMBean
public Integer getSize()
getSize
in interface ManagedConsumerCacheMBean
public Integer getMaximumCacheSize()
getMaximumCacheSize
in interface ManagedConsumerCacheMBean
public Long getHits()
getHits
in interface ManagedConsumerCacheMBean
public Long getMisses()
getMisses
in interface ManagedConsumerCacheMBean
public Long getEvicted()
getEvicted
in interface ManagedConsumerCacheMBean
public void resetStatistics()
resetStatistics
in interface ManagedConsumerCacheMBean
public void purge()
purge
in interface ManagedConsumerCacheMBean
Apache Camel