Interface Pool

All Superinterfaces:
Serializable
All Known Subinterfaces:
KeyedObjectPool<K,E>, ObjectPool<E>
All Known Implementing Classes:
AbstractPool, GenericKeyedObjectPool, GenericObjectPool

public interface Pool extends Serializable
Since:
0.8
Author:
Haiyang Li
  • Method Details

    • lock

      void lock()
      Lock.
    • unlock

      void unlock()
      Unlock.
    • getCapacity

      int getCapacity()
      Gets the capacity.
      Returns:
    • size

      int size()
    • isEmpty

      boolean isEmpty()
      Checks if is empty.
      Returns:
      true, if is empty
    • vacate

      void vacate()
      Vacate.
    • clear

      void clear()
      Clear.
    • close

      void close()
      Close.
    • isClosed

      boolean isClosed()
      Checks if is closed.
      Returns:
      true, if is closed
    • putCount

      long putCount()
    • hitCount

      long hitCount()
    • missCount

      long missCount()
    • evictionCount

      long evictionCount()
      Returns the number of values that have been evicted.
      Returns: