Class ConcurrentPool.ConcurrentEntry<E>
java.lang.Object
org.eclipse.jetty.util.ConcurrentPool.ConcurrentEntry<E>
- All Implemented Interfaces:
 Pool.Entry<E>
- Enclosing class:
 ConcurrentPool<P>
A Pool entry that holds metadata and a pooled object.
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Pool.Entry
Pool.Entry.Wrapper<W> - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
ConcurrentEntry
 
 - 
 - 
Method Details
- 
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<E>- 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<E>- Returns:
 - the pooled object
 
 - 
release
public boolean release()Description copied from interface:Pool.EntryReleases this
Entryto thePool.- Specified by:
 releasein interfacePool.Entry<E>- Returns:
 - whether this 
Entrywas released 
 - 
remove
public boolean remove()Description copied from interface:Pool.EntryRemoves this
Entryfrom thePool.- Specified by:
 removein interfacePool.Entry<E>- Returns:
 - whether this 
Entrywas removed 
 - 
isTerminated
public boolean isTerminated()- Specified by:
 isTerminatedin interfacePool.Entry<E>- Returns:
 - whether this 
Entryis terminated 
 - 
isReserved
public boolean isReserved()- Specified by:
 isReservedin interfacePool.Entry<E>- Returns:
 - whether this 
Entryis reserved - See Also:
 
 - 
isIdle
public boolean isIdle()- Specified by:
 isIdlein interfacePool.Entry<E>- Returns:
 - whether this 
Entryis idle in thePool 
 - 
isInUse
public boolean isInUse()- Specified by:
 isInUsein interfacePool.Entry<E>- Returns:
 - whether this 
Entryis in use 
 - 
toString
 
 -