Class Pool.MonoEntry
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisClosed()booleanisIdle()booleanisInUse()booleantoString()(package private) booleanTries to acquire this Entry.protected booleantryEnable(boolean acquire) Tries to enable, and possible also acquire, this Entry.(package private) booleanTries to release this Entry.(package private) booleanTries to remove the entry by marking it as closed.Methods inherited from class Pool.Entry
enable, getPooled, getUsageCount, isIdleAndOverUsed, isOverUsed, release, remove, setUsageCount
-
Field Details
-
state
-
-
Constructor Details
-
MonoEntry
private MonoEntry()
-
-
Method Details
-
tryEnable
protected boolean tryEnable(boolean acquire) Description copied from class:Pool.EntryTries to enable, and possible also acquire, this Entry.
-
tryAcquire
boolean tryAcquire()Description copied from class:Pool.EntryTries to acquire this Entry.
- Specified by:
tryAcquirein classPool<T>.Entry- Returns:
- whether this Entry was acquired
-
tryRelease
boolean tryRelease()Description copied from class:Pool.EntryTries to release this Entry.
- Specified by:
tryReleasein classPool<T>.Entry- Returns:
- true if this Entry was released,
false if
Pool.Entry.tryRemove()should be called.
-
tryRemove
boolean tryRemove()Description copied from class:Pool.EntryTries to remove the entry by marking it as closed.
-
isClosed
-
isReserved
public boolean isReserved()- Specified by:
isReservedin classPool<T>.Entry- Returns:
- whether this Entry is reserved
-
isIdle
-
isInUse
-
toString
-