Class Pool.Wrapper<W>
java.lang.Object
org.eclipse.jetty.util.Pool.Wrapper<W>
- Type Parameters:
 W- the type of the pooled objects
- All Implemented Interfaces:
 Pool<W>
- Direct Known Subclasses:
 LockedPool
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Pool
Pool.Entry<E>, Pool.Factory<F>, Pool.Wrapper<W> - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionacquire()Acquires an entry from the pool.acquire(Function<Pool.Entry<W>, W> creator) Acquires an entry from the pool, reserving and creating a new entry if necessary.intintintintintbooleanreserve()Creates a new disabled slot into the pool.intsize()stream()Terminates thisPool. 
- 
Constructor Details
- 
Wrapper
 
 - 
 - 
Method Details
- 
getWrapped
 - 
reserve
Description copied from interface:PoolCreates a new disabled slot into the pool.
The returned entry must ultimately have the
Pool.Entry.enable(Object, boolean)method called or be removed viaPool.Entry.remove(). - 
acquire
Description copied from interface:PoolAcquires an entry from the pool.
Only enabled entries will be returned from this method and their
Pool.Entry.enable(Object, boolean)method must not be called. - 
acquire
Description copied from interface:PoolAcquires an entry from the pool, reserving and creating a new entry if necessary.
 - 
isTerminated
public boolean isTerminated()- Specified by:
 isTerminatedin interfacePool<W>- Returns:
 - whether this 
Poolhas been terminated - See Also:
 
 - 
terminate
Description copied from interface:PoolTerminates this
Pool.All the entries are marked as terminated and cannot be acquired nor released, but only removed.
The returned list of all entries may be iterated to perform additional operations on the pooled objects.
The pool cannot be used anymore after it is terminated.
 - 
size
 - 
getMaxSize
public int getMaxSize()- Specified by:
 getMaxSizein interfacePool<W>- Returns:
 - the maximum number of entries in this 
Pool 
 - 
stream
 - 
getReservedCount
public int getReservedCount()- Specified by:
 getReservedCountin interfacePool<W>- Returns:
 - the number of reserved entries
 
 - 
getIdleCount
public int getIdleCount()- Specified by:
 getIdleCountin interfacePool<W>- Returns:
 - the number of idle entries
 
 - 
getInUseCount
public int getInUseCount()- Specified by:
 getInUseCountin interfacePool<W>- Returns:
 - the number of in-use entries
 
 - 
getTerminatedCount
public int getTerminatedCount()- Specified by:
 getTerminatedCountin interfacePool<W>- Returns:
 - the number of terminated entries
 
 
 -