Package org.eclipse.jetty.util
Class Pool.Entry
- java.lang.Object
-
- org.eclipse.jetty.util.Pool.Entry
-
@Deprecated(since="2021-05-27") public class Pool.Entry extends Object
Deprecated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
enable(T pooled, boolean acquire)
Deprecated.Enable a reserved entryPool.Entry
.T
getPooled()
Deprecated.int
getUsageCount()
Deprecated.boolean
isClosed()
Deprecated.boolean
isIdle()
Deprecated.boolean
isInUse()
Deprecated.boolean
isOverUsed()
Deprecated.boolean
isReserved()
Deprecated.boolean
release()
Deprecated.Release the entry.boolean
remove()
Deprecated.Remove the entry.String
toString()
Deprecated.
-
-
-
Method Detail
-
enable
public boolean enable(T pooled, boolean acquire)
Deprecated.Enable a reserved entryPool.Entry
. An entry returned from thePool.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 closed.- Parameters:
pooled
- The pooled item for the entryacquire
- If true the entry is atomically enabled and acquired.- Returns:
- true If the entry was enabled.
- Throws:
IllegalStateException
- if the entry was already enabled
-
getPooled
public T getPooled()
Deprecated.
-
release
public boolean release()
Deprecated.Release the entry. This is equivalent to callingPool.release(Pool.Entry)
passing this entry.- Returns:
- true if released.
-
remove
public boolean remove()
Deprecated.Remove the entry. This is equivalent to callingPool.remove(Pool.Entry)
passing this entry.- Returns:
- true if remove.
-
isClosed
public boolean isClosed()
Deprecated.
-
isReserved
public boolean isReserved()
Deprecated.
-
isIdle
public boolean isIdle()
Deprecated.
-
isInUse
public boolean isInUse()
Deprecated.
-
isOverUsed
public boolean isOverUsed()
Deprecated.
-
getUsageCount
public int getUsageCount()
Deprecated.
-
-