public static class PooledBasedBackEnd.PoolParticipant extends Object implements PoolParticipant
| Constructor and Description |
|---|
PoolParticipant(PooledBasedBackEnd<Object,Object> pooledBasedBackEnd)
Creates a pool participant
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evict(int count,
long size)
Perform eviction to release resources
|
long |
getApproximateCountSize()
Return the approximate size
|
float |
getApproximateHitRate()
Return the approximate hit rate
|
float |
getApproximateMissRate()
Return the approximate miss rate
|
public PoolParticipant(PooledBasedBackEnd<Object,Object> pooledBasedBackEnd)
pooledBasedBackEnd - the backend this participant representspublic boolean evict(int count,
long size)
PoolParticipantevict in interface PoolParticipantcount - the number of elements to evictsize - the size in bytes to free (hint)public float getApproximateHitRate()
PoolParticipantgetApproximateHitRate in interface PoolParticipantpublic float getApproximateMissRate()
PoolParticipantgetApproximateMissRate in interface PoolParticipantpublic long getApproximateCountSize()
PoolParticipantgetApproximateCountSize in interface PoolParticipantCopyright 2001-2021, Terracotta, Inc.