Class PooledBasedBackEnd.PoolParticipant

    • Constructor Detail

      • PoolParticipant

        public PoolParticipant​(PooledBasedBackEnd<java.lang.Object,​java.lang.Object> pooledBasedBackEnd)
        Creates a pool participant
        Parameters:
        pooledBasedBackEnd - the backend this participant represents
    • Method Detail

      • evict

        public boolean evict​(int count,
                             long size)
        Description copied from interface: PoolParticipant
        Perform eviction to release resources
        Specified by:
        evict in interface PoolParticipant
        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