- Type Parameters:
T
- the resource type
- All Known Implementing Classes:
ByteBufferSlicePool
public interface Pool<T>
Deprecated.
A generic pooled resource manager.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pool<ByteBuffer>
Deprecated.A compatibility pool which maps toByteBufferPool.MEDIUM_DIRECT
.static final Pool<ByteBuffer>
Deprecated.A compatibility pool which maps toByteBufferPool.MEDIUM_HEAP
. -
Method Summary
-
Field Details
-
HEAP
Deprecated.A compatibility pool which maps toByteBufferPool.MEDIUM_HEAP
. -
DIRECT
Deprecated.A compatibility pool which maps toByteBufferPool.MEDIUM_DIRECT
.
-
-
Method Details
-
allocate
Deprecated.Allocate a resource from the pool.- Returns:
- the resource
-
ByteBufferPool
.