| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the number of entries in the cacheGet the number of entries currently allocated in the cache. |
| public boolean | Returns: true if access counts are enabled,
false otherwiseCheck if collection of cache access counts is enabled. |
| public long | Returns: the number of evicted objectsGet the number of cached objects that have been evicted from the cache in order to make room for other objects. |
| public long | Returns: the number of cache hitsGet the number of cache accesses where the requested object was already in the cache. |
| public long | Returns: the maximum number of entries in the cacheGet the maximum number of entries that could be held by this cache. |
| public long | Returns: the number of cache missesGet the number of cache accesses where the requested object was not already in the cache. |
| public long | Returns: the number of objects in the cacheGet the number of objects that are currently in the cache. |
| public void | setCollectAccessCounts(boolean
true if access counts should be collected, or
false otherwiseEnable or disable collection of cache access counts. |
| getAllocatedEntries | back to summary |
|---|---|
| public long getAllocatedEntries() 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() Check if collection of cache access counts is enabled.
| |
| getEvictionCount | back to summary |
|---|---|
| public long getEvictionCount() 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() Get the number of cache accesses where the requested object was already in the cache.
| |
| getMaxEntries | back to summary |
|---|---|
| public long getMaxEntries() Get the maximum number of entries that could be held by this cache.
| |
| getMissCount | back to summary |
|---|---|
| public long getMissCount() Get the number of cache accesses where the requested object was not already in the cache.
| |
| getUsedEntries | back to summary |
|---|---|
| public long getUsedEntries() Get the number of objects that are currently in the cache.
| |
| setCollectAccessCounts | back to summary |
|---|---|
| public void setCollectAccessCounts(boolean collect) 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.
| |