Package org.cache2k.operation
Interface CacheControl
-
- All Superinterfaces:
CacheInfo
,CacheOperation
public interface CacheControl extends CacheOperation, CacheInfo
Combined interface for introspection and control functions of a cache relevant for management and monitoring.- Author:
- Jens Wilke
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CacheControl
of(Cache<?,?> cache)
Request the management interface of the given cache.CacheStatistics
sampleStatistics()
Returns a snapshot of cache statistics if this cache supports statistics ornull
otherwise.-
Methods inherited from interface org.cache2k.operation.CacheInfo
getCapacityLimit, getClearedTime, getCreatedTime, getEntryCapacity, getExpiryAfterWriteTicks, getImplementation, getKeyType, getManagerName, getMaximumWeight, getName, getSize, getTimeReference, getTotalWeight, getValueType, isLoaderPresent, isStatisticsEnabled, isWeigherPresent
-
Methods inherited from interface org.cache2k.operation.CacheOperation
changeCapacity, clear, close, destroy, removeAll
-
-
-
-
Method Detail
-
of
static CacheControl of(Cache<?,?> cache)
Request the management interface of the given cache.
-
sampleStatistics
CacheStatistics sampleStatistics()
Returns a snapshot of cache statistics if this cache supports statistics ornull
otherwise.
-
-