public class CacheOccupation extends Object implements CacheOccupationMXBean
Constructor and Description |
---|
CacheOccupation(WeakReference<CompositeKeyCache> weakReference) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all elements from the cache..
|
long |
getEstimatedMemorySizeInBytes()
Returns the estimated memory size of all elements in the cache in bytes.
|
long |
getEstimatedMemorySizeInBytesAtMaximum()
Returns the maximum estimated memory size of all elements in the cache in bytes the cache can
store.
|
long |
getNumberOfElements()
Returns the number of elements in the cache.
|
long |
getNumberOfElementsAtMaximum()
Returns the maximum number of elements the cache can store.
|
public CacheOccupation(WeakReference<CompositeKeyCache> weakReference)
public void clear()
CacheOccupationMXBean
clear
in interface CacheOccupationMXBean
public long getNumberOfElements()
CacheOccupationMXBean
getNumberOfElements
in interface CacheOccupationMXBean
public long getEstimatedMemorySizeInBytes()
CacheOccupationMXBean
getEstimatedMemorySizeInBytes
in interface CacheOccupationMXBean
public long getNumberOfElementsAtMaximum()
CacheOccupationMXBean
getNumberOfElementsAtMaximum
in interface CacheOccupationMXBean
public long getEstimatedMemorySizeInBytesAtMaximum()
CacheOccupationMXBean
getEstimatedMemorySizeInBytesAtMaximum
in interface CacheOccupationMXBean
Copyright © 2024 levigo holding gmbh. All rights reserved.