Enum DataBufferPool

java.lang.Object
java.lang.Enum<DataBufferPool>
com.illumon.iris.db.util.caching.redesign.DataBufferPool
All Implemented Interfaces:
ObjectPool<DataBufferHolder>, Serializable, Comparable<DataBufferPool>, java.lang.constant.Constable

public enum DataBufferPool
extends Enum<DataBufferPool>
implements ObjectPool<DataBufferHolder>
Data buffer pool for all Deephaven-format column data.
  • Enum Constant Details

    • DEFAULT

      public static final DataBufferPool DEFAULT
      The data buffer pool used by all Deephaven-format columns.
  • Method Details

    • values

      public static DataBufferPool[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DataBufferPool valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • take

      @NotNull public final PooledObjectReference<DataBufferHolder> take()
      Description copied from interface: ObjectPool
      Take an item from the pool.
      Specified by:
      take in interface ObjectPool<DataBufferHolder>
      Returns:
      A reference that encapsulates access to the item, to allow reclamation per the pool implementation's policies.
    • give

      public final void give​(@NotNull PooledObjectReference<DataBufferHolder> itemReference)
      Description copied from interface: ObjectPool
      Return an item to the pool (permanently).
      Specified by:
      give in interface ObjectPool<DataBufferHolder>
      Parameters:
      itemReference - The reference returns previously by a call to give.