ehcache

net.sf.ehcache.pool
Interface PoolParticipant

All Known Implementing Classes:
PooledBasedBackEnd.PoolParticipant

public interface PoolParticipant

A poolable store reports its resource usage to a Pool.

Author:
Ludovic Orban, Alex Snaps

Method Summary
 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
 

Method Detail

evict

boolean evict(int count,
              long size)
Perform eviction to release resources

Parameters:
count - the number of elements to evict
size - the size in bytes to free (hint)
Returns:
true if the requested number of elements could be evicted

getApproximateHitRate

float getApproximateHitRate()
Return the approximate hit rate

Returns:
the approximate hit rate

getApproximateMissRate

float getApproximateMissRate()
Return the approximate miss rate

Returns:
the approximate miss rate

getApproximateCountSize

long getApproximateCountSize()
Return the approximate size

Returns:
the approximate size

ehcache

Copyright 2001-2014, Terracotta, Inc.