Class Pool.Entry.Wrapper<W>
java.lang.Object
org.eclipse.jetty.util.Pool.Entry.Wrapper<W>
- Type Parameters:
W- the type of the pooled objects
- All Implemented Interfaces:
Pool.Entry<W>
- Enclosing interface:
Pool.Entry<E>
A wrapper for Entry instances.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Pool.Entry
Pool.Entry.Wrapper<W> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Wrapper
-
-
Method Details
-
getWrapped
-
enable
Description copied from interface:Pool.EntryEnables this, previously
reserved,Entry.An entry returned from the
Pool.reserve()method must be enabled with this method, once and only once, before it is usable by the pool.The entry may be enabled and not acquired, in which case it is immediately available to be acquired, potentially by another thread; or it can be enabled and acquired atomically so that no other thread can acquire it, although the acquire may still fail if the pool has been terminated.
- Specified by:
enablein interfacePool.Entry<W>- Parameters:
pooled- the pooled object for thisEntryacquire- whether thisEntryshould be atomically enabled and acquired- Returns:
- whether this
Entrywas enabled
-
getPooled
- Specified by:
getPooledin interfacePool.Entry<W>- Returns:
- the pooled object
-
release
public boolean release()Description copied from interface:Pool.EntryReleases this
Entryto thePool.- Specified by:
releasein interfacePool.Entry<W>- Returns:
- whether this
Entrywas released
-
remove
public boolean remove()Description copied from interface:Pool.EntryRemoves this
Entryfrom thePool.- Specified by:
removein interfacePool.Entry<W>- Returns:
- whether this
Entrywas removed
-
isReserved
public boolean isReserved()- Specified by:
isReservedin interfacePool.Entry<W>- Returns:
- whether this
Entryis reserved - See Also:
-
isIdle
public boolean isIdle()- Specified by:
isIdlein interfacePool.Entry<W>- Returns:
- whether this
Entryis idle in thePool
-
isInUse
public boolean isInUse()- Specified by:
isInUsein interfacePool.Entry<W>- Returns:
- whether this
Entryis in use
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfacePool.Entry<W>- Returns:
- whether this
Entryis terminated
-