Package com.landawn.abacus.pool
Class AbstractPool
java.lang.Object
com.landawn.abacus.pool.AbstractPool
- All Implemented Interfaces:
Pool
,Serializable
- Direct Known Subclasses:
GenericKeyedObjectPool
,GenericObjectPool
- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
-
Method Summary
-
Method Details
-
lock
public void lock()Lock. -
unlock
public void unlock()Unlock. -
getCapacity
public int getCapacity()Gets the capacity.- Specified by:
getCapacity
in interfacePool
- Returns:
-
putCount
public long putCount() -
hitCount
public long hitCount() -
missCount
public long missCount() -
evictionCount
public long evictionCount()Description copied from interface:Pool
Returns the number of values that have been evicted.- Specified by:
evictionCount
in interfacePool
- Returns:
-
isEmpty
public boolean isEmpty()Checks if is empty. -
isClosed
public boolean isClosed()Checks if is closed.
-