Top Description Fields Methods
org.xnio

public Interface Pool<T>

Known Direct Implementers
org.xnio.Buffers.SecureByteBufferPool, org.xnio.ByteBufferSlicePool
Type Parameters
<T>
the resource type
Imports
java.nio.ByteBuffer

Deprecated

See ByteBufferPool.

A generic pooled resource manager.

Field Summary

Modifier and TypeField and Description
public static final Pool<ByteBuffer>
DIRECT

References Deprecated Pool is deprecated or references (maybe indirectly) at least one deprecated element.
A compatibility pool which maps to ByteBufferPool#MEDIUM_DIRECT.
public static final Pool<ByteBuffer>
HEAP

References Deprecated Pool is deprecated or references (maybe indirectly) at least one deprecated element.
A compatibility pool which maps to ByteBufferPool#MEDIUM_HEAP.

Method Summary

Modifier and TypeMethod and Description
public Pooled<T>

Returns:

the resource
allocate
()
References Deprecated Pooled is deprecated or references (maybe indirectly) at least one deprecated element.

Allocate a resource from the pool.

Field Detail

DIRECTback to summary
public static final Pool<ByteBuffer> DIRECT

References Deprecated

Pool is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

A compatibility pool which maps to ByteBufferPool#MEDIUM_DIRECT.

HEAPback to summary
public static final Pool<ByteBuffer> HEAP

References Deprecated

Pool is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

A compatibility pool which maps to ByteBufferPool#MEDIUM_HEAP.

Method Detail

allocateback to summary
public Pooled<T> allocate()

References Deprecated

Pooled is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Allocate a resource from the pool.

Returns:Pooled<T>

the resource