Class AbstractPool

java.lang.Object
com.landawn.abacus.pool.AbstractPool
All Implemented Interfaces:
Pool, Serializable
Direct Known Subclasses:
GenericKeyedObjectPool, GenericObjectPool

public abstract class AbstractPool extends Object implements Pool
Since:
0.8
Author:
Haiyang Li
See Also:
  • Method Details

    • lock

      public void lock()
      Lock.
      Specified by:
      lock in interface Pool
    • unlock

      public void unlock()
      Unlock.
      Specified by:
      unlock in interface Pool
    • getCapacity

      public int getCapacity()
      Gets the capacity.
      Specified by:
      getCapacity in interface Pool
      Returns:
    • putCount

      public long putCount()
      Specified by:
      putCount in interface Pool
    • hitCount

      public long hitCount()
      Specified by:
      hitCount in interface Pool
    • missCount

      public long missCount()
      Specified by:
      missCount in interface Pool
    • evictionCount

      public long evictionCount()
      Description copied from interface: Pool
      Returns the number of values that have been evicted.
      Specified by:
      evictionCount in interface Pool
      Returns:
    • isEmpty

      public boolean isEmpty()
      Checks if is empty.
      Specified by:
      isEmpty in interface Pool
      Returns:
      true, if is empty
    • isClosed

      public boolean isClosed()
      Checks if is closed.
      Specified by:
      isClosed in interface Pool
      Returns:
      true, if is closed