Top Description Methods
net.sf.ehcache.pool

public Interface PoolParticipant

Known Direct Implementers
net.sf.ehcache.store.MemoryStore.Participant, net.sf.ehcache.store.cachingtier.PooledBasedBackEnd.PoolParticipant, net.sf.ehcache.store.disk.DiskStore.DiskStorePoolParticipant

A poolable store reports its resource usage to a Pool.
Authors
Ludovic Orban, Alex Snaps

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the requested number of elements could be evicted
evict
(int
the number of elements to evict
count
,
long
the size in bytes to free (hint)
size
)

Perform eviction to release resources

public long

Returns:

the approximate size
getApproximateCountSize
()

Return the approximate size

public float

Returns:

the approximate hit rate
getApproximateHitRate
()

Return the approximate hit rate

public float

Returns:

the approximate miss rate
getApproximateMissRate
()

Return the approximate miss rate

Method Detail

evictback to summary
public boolean evict(int count, long size)

Perform eviction to release resources

Parameters
count:int

the number of elements to evict

size:long

the size in bytes to free (hint)

Returns:boolean

true if the requested number of elements could be evicted

getApproximateCountSizeback to summary
public long getApproximateCountSize()

Return the approximate size

Returns:long

the approximate size

getApproximateHitRateback to summary
public float getApproximateHitRate()

Return the approximate hit rate

Returns:float

the approximate hit rate

getApproximateMissRateback to summary
public float getApproximateMissRate()

Return the approximate miss rate

Returns:float

the approximate miss rate