Modifier and Type | Field and Description |
---|---|
private final ConcurrentCache |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private static void | |
public long | getAllocatedEntries()
Implements org. |
public boolean | getCollectAccessCounts()
Implements org. |
public long | getEvictionCount()
Implements org. |
public long | getHitCount()
Implements org. |
public long | getMaxEntries()
Implements org. |
public long | getMissCount()
Implements org. |
public long | getUsedEntries()
Implements org. |
public void | setCollectAccessCounts(boolean
true if access counts should be collected, or
false otherwiseImplements org. |
cache | back to summary |
---|---|
private final ConcurrentCache cache |
ConcurrentCacheMBeanImpl | back to summary |
---|---|
pack-priv ConcurrentCacheMBeanImpl(ConcurrentCache cache) |
checkPermission | back to summary |
---|---|
private static void checkPermission() This method used to do a permission check in a privileged block |
getAllocatedEntries | back to summary |
---|---|
public long getAllocatedEntries() Implements org. Doc from org. Get the number of entries currently allocated in the cache. This number includes entries for objects that have been removed from the cache, whose entries have not yet been reused for other objects.
|
getCollectAccessCounts | back to summary |
---|---|
public boolean getCollectAccessCounts() Implements org. Doc from org. Check if collection of cache access counts is enabled.
|
getEvictionCount | back to summary |
---|---|
public long getEvictionCount() Implements org. Doc from org. Get the number of cached objects that have been evicted from the cache in order to make room for other objects.
|
getHitCount | back to summary |
---|---|
public long getHitCount() Implements org. Doc from org. Get the number of cache accesses where the requested object was already in the cache.
|
getMaxEntries | back to summary |
---|---|
public long getMaxEntries() Implements org. Doc from org. Get the maximum number of entries that could be held by this cache.
|
getMissCount | back to summary |
---|---|
public long getMissCount() Implements org. Doc from org. Get the number of cache accesses where the requested object was not already in the cache.
|
getUsedEntries | back to summary |
---|---|
public long getUsedEntries() Implements org. Doc from org. Get the number of objects that are currently in the cache.
|
setCollectAccessCounts | back to summary |
---|---|
public void setCollectAccessCounts(boolean collect) Implements org. Doc from org. Enable or disable collection of cache access counts. That is, whether or not each hit, miss and eviction should be counted. Enabling it might impose a small overhead on cache accesses, and might reduce the system performance. Access counts are disabled by default.
|