Package | Description |
---|---|
io.undertow.server.handlers.cache | |
org.xnio |
The main API package for XNIO.
|
Constructor and Description |
---|
DirectBufferCache(int sliceSize,
int slicesPerPage,
int maxMemory,
BufferAllocator<ByteBuffer> bufferAllocator) |
DirectBufferCache(int sliceSize,
int slicesPerPage,
int maxMemory,
BufferAllocator<ByteBuffer> bufferAllocator,
int maxAge) |
LimitedBufferSlicePool(BufferAllocator<ByteBuffer> allocator,
int bufferSize,
int maxRegionSize)
Construct a new instance.
|
LimitedBufferSlicePool(BufferAllocator<ByteBuffer> allocator,
int bufferSize,
int maxRegionSize,
int maxRegions)
Construct a new instance.
|
Modifier and Type | Field and Description |
---|---|
static BufferAllocator<ByteBuffer> |
BufferAllocator.BYTE_BUFFER_ALLOCATOR
A simple allocator for heap-array-backed byte buffers.
|
static BufferAllocator<ByteBuffer> |
BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR
A simple allocator for direct byte buffers.
|
Modifier and Type | Method and Description |
---|---|
static BufferAllocator<ByteBuffer> |
Buffers.sliceAllocator(ByteBuffer buffer)
A buffer allocator which allocates slices off of the given buffer.
|
Modifier and Type | Method and Description |
---|---|
static <B extends 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 ByteBuffer |
Buffers.copy(ByteBuffer buffer,
int count,
BufferAllocator<ByteBuffer> allocator)
Copy a portion of the buffer into a newly allocated buffer.
|
Constructor and Description |
---|
ByteBufferSlicePool(BufferAllocator<ByteBuffer> allocator,
int bufferSize,
int maxRegionSize)
Deprecated.
Construct a new instance.
|
ByteBufferSlicePool(BufferAllocator<ByteBuffer> allocator,
int bufferSize,
int maxRegionSize,
int threadLocalQueueSize)
Deprecated.
Construct a new instance.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.