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)
PoolParticipant
evict
in interface PoolParticipant
count
- the number of elements to evictsize
- the size in bytes to free (hint)public float getApproximateHitRate()
PoolParticipant
getApproximateHitRate
in interface PoolParticipant
public float getApproximateMissRate()
PoolParticipant
getApproximateMissRate
in interface PoolParticipant
public long getApproximateCountSize()
PoolParticipant
getApproximateCountSize
in interface PoolParticipant
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.