public interface TrackableCache extends Cache
Modifier and Type | Method and Description |
---|---|
Iterator<Map.Entry<OwnerKeyComposition,org.jadice.util.mm.internal.CacheEntry>> |
getCacheElementsIterator()
Get an
Iterator of the cache elements. |
long |
getEstimatedSize()
Returns the approximate size of the cache in bytes.
|
int |
getMaximumObjectCount()
Return the maximum number of entries in the cache.
|
long |
getMaximumSize()
Returns the maximum size of bytes the cache is allowed to store.
|
int |
getObjectCount()
Returns the number of elements in the cache in the moment where the request was finally
executed.
|
get, put, remove
int getObjectCount()
int getMaximumObjectCount()
long getMaximumSize()
long getEstimatedSize()
Iterator<Map.Entry<OwnerKeyComposition,org.jadice.util.mm.internal.CacheEntry>> getCacheElementsIterator()
Iterator
of the cache elements. This Iterator
is read only. Thus calls to
Iterator.remove()
will always result in a UnsupportedOperationException
Copyright © 2024 levigo holding gmbh. All rights reserved.