Package com.landawn.abacus.pool
Interface Pool
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
KeyedObjectPool<K,
,E> ObjectPool<E>
- All Known Implementing Classes:
AbstractPool
,GenericKeyedObjectPool
,GenericObjectPool
- Since:
- 0.8
- Author:
- Haiyang Li
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.void
close()
Close.long
Returns the number of values that have been evicted.int
Gets the capacity.long
hitCount()
boolean
isClosed()
Checks if is closed.boolean
isEmpty()
Checks if is empty.void
lock()
Lock.long
long
putCount()
int
size()
void
unlock()
Unlock.void
vacate()
Vacate.
-
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:
-