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