Uses of Interface
org.xnio.BufferAllocator
Packages that use BufferAllocator
-
Uses of BufferAllocator in org.xnio
Fields in org.xnio declared as BufferAllocatorModifier and TypeFieldDescriptionstatic final BufferAllocator<ByteBuffer>
BufferAllocator.BYTE_BUFFER_ALLOCATOR
A simple allocator for heap-array-backed byte buffers.static final BufferAllocator<ByteBuffer>
BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR
A simple allocator for direct byte buffers.Methods in org.xnio that return BufferAllocatorModifier and TypeMethodDescriptionstatic BufferAllocator<ByteBuffer>
Buffers.sliceAllocator
(ByteBuffer buffer) A buffer allocator which allocates slices off of the given buffer.Methods in org.xnio with parameters of type BufferAllocatorModifier and TypeMethodDescriptionBuffers.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.Constructors in org.xnio with parameters of type BufferAllocatorModifierConstructorDescriptionByteBufferSlicePool
(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.