Enum 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.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULTThe data buffer pool used by all Deephaven-format columns. -
Method Summary
Modifier and Type Method Description voidgive(PooledObjectReference<DataBufferHolder> itemReference)Return an item to the pool (permanently).PooledObjectReference<DataBufferHolder>take()Take an item from the pool.static DataBufferPoolvalueOf(String name)Returns the enum constant of this type with the specified name.static DataBufferPool[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
The data buffer pool used by all Deephaven-format columns.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
take
Description copied from interface:ObjectPoolTake an item from the pool.- Specified by:
takein interfaceObjectPool<DataBufferHolder>- Returns:
- A reference that encapsulates access to the item, to allow reclamation per the pool implementation's policies.
-
give
Description copied from interface:ObjectPoolReturn an item to the pool (permanently).- Specified by:
givein interfaceObjectPool<DataBufferHolder>- Parameters:
itemReference- The reference returns previously by a call to give.
-