Class Pool.Entry

java.lang.Object
org.eclipse.jetty.util.Pool.Entry
Enclosing class:
Pool<T>

@Deprecated(since="2021-05-27") public abstract class Pool.Entry extends Object
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

A Pool entry that holds metadata and a pooled object.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    enable(T pooled, boolean acquire)
    Deprecated.
    Enables this, previously reserved, Entry.
    Deprecated.
     
    abstract boolean
    Deprecated.
     
    abstract boolean
    Deprecated.
     
    abstract boolean
    Deprecated.
     
    boolean
    Deprecated.
    MaxUsage functionalities will be removed
    abstract boolean
    Deprecated.
     
    boolean
    Deprecated.
    Releases this Entry.
    boolean
    Deprecated.
    Removes this Entry from the Pool.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Entry

      public Entry()
      Deprecated.
  • Method Details

    • enable

      public boolean enable(T pooled, boolean acquire)
      Deprecated.

      Enables 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 closed.

      Parameters:
      pooled - the pooled object for this Entry
      acquire - whether this Entry should be atomically enabled and acquired
      Returns:
      whether this Entry was enabled
      Throws:
      IllegalStateException - if this Entry was already enabled
    • getPooled

      public T getPooled()
      Deprecated.
      Returns:
      the pooled object
    • release

      public boolean release()
      Deprecated.

      Releases this Entry.

      This is equivalent to calling Pool.release(Pool.Entry) passing this entry.

      Returns:
      whether this Entry was released
    • remove

      public boolean remove()
      Deprecated.

      Removes this Entry from the Pool.

      This is equivalent to calling Pool.remove(Pool.Entry) passing this entry.

      Returns:
      whether this Entry was removed
    • isClosed

      public abstract boolean isClosed()
      Deprecated.
      Returns:
      whether this Entry is closed
    • isReserved

      public abstract boolean isReserved()
      Deprecated.
      Returns:
      whether this Entry is reserved
    • isIdle

      public abstract boolean isIdle()
      Deprecated.
      Returns:
      whether this Entry is idle
    • isInUse

      public abstract boolean isInUse()
      Deprecated.
      Returns:
      whether this entry is in use.
    • isOverUsed

      @Deprecated public boolean isOverUsed()
      Deprecated.
      MaxUsage functionalities will be removed
      Returns:
      whether this entry has been used beyond Pool.getMaxUsageCount()