Package | Description |
---|---|
org.xnio |
The main API package for XNIO.
|
Modifier and Type | Field and Description |
---|---|
static BufferAllocator<java.nio.ByteBuffer> |
BufferAllocator.BYTE_BUFFER_ALLOCATOR
A simple allocator for heap-array-backed byte buffers.
|
static BufferAllocator<java.nio.ByteBuffer> |
BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR
A simple allocator for direct byte buffers.
|
Modifier and Type | Method and Description |
---|---|
static BufferAllocator<java.nio.ByteBuffer> |
Buffers.sliceAllocator(java.nio.ByteBuffer buffer)
A buffer allocator which allocates slices off of the given buffer.
|
Modifier and Type | Method and Description |
---|---|
static <B extends java.nio.Buffer> |
Buffers.allocatedBufferPool(BufferAllocator<B> allocator,
int size)
A buffer pool which allocates a new buffer on every allocate request, and discards buffers on free.
|
static java.nio.ByteBuffer |
Buffers.copy(java.nio.ByteBuffer buffer,
int count,
BufferAllocator<java.nio.ByteBuffer> allocator)
Copy a portion of the buffer into a newly allocated buffer.
|
Constructor and Description |
---|
ByteBufferSlicePool(BufferAllocator<java.nio.ByteBuffer> allocator,
int bufferSize,
int maxRegionSize)
Deprecated.
Construct a new instance.
|
ByteBufferSlicePool(BufferAllocator<java.nio.ByteBuffer> allocator,
int bufferSize,
int maxRegionSize,
int threadLocalQueueSize)
Deprecated.
Construct a new instance.
|
Copyright © 2016 JBoss, a division of Red Hat, Inc.