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
public abstract class AbstractPool extends Object implements Pool
The Class AbstractPool.- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
evictionCount()
Returns the number of values that have been evicted.int
getCapacity()
Gets the capacity.long
hitCount()
boolean
isClosed()
Checks if is closed.boolean
isEmpty()
Checks if is empty.void
lock()
Lock.long
missCount()
long
putCount()
void
unlock()
Unlock.
-
-
-
Method Detail
-
getCapacity
public int getCapacity()
Gets the capacity.- Specified by:
getCapacity
in interfacePool
- Returns:
-
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.
-
-