Uses of Class
org.jgrapes.io.util.ManagedBuffer
Package
Description
Provides components for building a HTTP server based on the
core and IO components.
I/O related components built on top of the core package.
Provides the events used by the I/O related components.
Utility classes, mainly for adapted buffers to specific needs.
Networking related I/O classes.
-
Uses of ManagedBuffer in org.jgrapes.http
Modifier and TypeMethodDescription<W extends Buffer>
voidWwwFormUrldecoder.feed
(ManagedBuffer<W> buffer) Feed data to the collector. -
Uses of ManagedBuffer in org.jgrapes.io
Modifier and TypeMethodDescriptionIOSubchannel.byteBufferPool()
Get the subchannel’s byte buffer pool.IOSubchannel.DefaultIOSubchannel.byteBufferPool()
Returns the buffer pool set.IOSubchannel.charBufferPool()
Get the subchannel’s char buffer pool.IOSubchannel.DefaultIOSubchannel.charBufferPool()
Returns the buffer pool set.Modifier and TypeMethodDescriptionprotected void
IOSubchannel.DefaultIOSubchannel.setByteBufferPool
(ManagedBufferPool<ManagedBuffer<ByteBuffer>, ByteBuffer> bufferPool) protected void
IOSubchannel.DefaultIOSubchannel.setCharBufferPool
(ManagedBufferPool<ManagedBuffer<CharBuffer>, CharBuffer> bufferPool) -
Uses of ManagedBuffer in org.jgrapes.io.events
Modifier and TypeMethodDescriptionIOEvent.buffer()
Get the managed buffer with the data from this event.Modifier and TypeMethodDescriptionInput.fromSink
(ManagedBuffer<B> buffer, boolean endOfRecord) Create a new event with the given buffer.Output.fromSink
(ManagedBuffer<B> buffer, boolean endOfRecord) Create a new event with the given buffer.Input.fromSource
(ManagedBuffer<B> buffer, boolean endOfRecord) Create a new event with the given buffer.Output.fromSource
(ManagedBuffer<B> buffer, boolean endOfRecord) Create a new event with the given buffer.ModifierConstructorDescriptionprotected
IOEvent
(ManagedBuffer<T> buffer, boolean endOfRecord) Instantiates a new IO event. -
Uses of ManagedBuffer in org.jgrapes.io.util
Modifier and TypeInterfaceDescriptioninterface
BufferCollector<B extends ManagedBuffer<?>>
Defines the method of a buffer collector.class
ManagedBufferPool<W extends ManagedBuffer<T>,
T extends Buffer> A queue based buffer pool.Modifier and TypeFieldDescriptionprotected ManagedBuffer
<B> AbstractBufferWriter.buffer
static final ManagedBuffer
<ByteBuffer> ManagedBuffer.EMPTY_BYTE_BUFFER
static final ManagedBuffer
<CharBuffer> ManagedBuffer.EMPTY_CHAR_BUFFER
Modifier and TypeFieldDescriptionstatic final BufferCollector
<? extends ManagedBuffer<?>> BufferCollector.NOOP_COLLECTOR
A predefined buffer collector that does nothing when the managed buffer is no longer used.Modifier and TypeMethodDescriptionstatic <T extends ManagedBuffer<?>>
BufferCollector<T> BufferCollector.noopCollector()
A type-safe way to get theBufferCollector.NOOP_COLLECTOR
.Modifier and TypeMethodDescriptionManagedBuffer.linkBackingBuffer
(ManagedBuffer<T> buffer) Links this instance’s backing buffer (temporarily) to the given buffer’s backing buffer.ManagedBuffer.lockBuffer()
Increases the buffer’s lock count.ManagedBuffer.ByteBufferView.managedBuffer()
Returns the managed buffer that this reader is a view of.ManagedBuffer.CharBufferView.managedBuffer()
Returns the managed buffer that this reader is a view of.ManagedBuffer.replaceBackingBuffer
(T buffer) Replace the backing buffer.static <B extends Buffer>
ManagedBuffer<B> ManagedBuffer.wrap
(B buffer) Convenience method for creating aManagedBuffer
with aBufferCollector.NOOP_COLLECTOR
from a NIO buffer.Modifier and TypeMethodDescription<W extends Buffer>
voidInputConsumer.feed
(ManagedBuffer<W> buffer) Feed data to the consumer.<W extends Buffer>
voidLineCollector.feed
(ManagedBuffer<W> buffer) Feed data to the collector.<W extends Buffer>
voidManagedBufferReader.feed
(ManagedBuffer<W> buffer) Feed data to the reader.<W extends Buffer>
voidManagedBufferStreamer.feed
(ManagedBuffer<W> buffer) Feed data to underlying the reader (see {@link ManagedBufferReader#feed).ManagedBuffer.linkBackingBuffer
(ManagedBuffer<T> buffer) Links this instance’s backing buffer (temporarily) to the given buffer’s backing buffer.ModifierConstructorDescriptionManagedBuffer
(T buffer, BufferCollector<ManagedBuffer<T>> manager) Create a new Managed buffer, backed by the given buffer, with a lock count of one. -
Uses of ManagedBuffer in org.jgrapes.net
Modifier and TypeMethodDescriptionSocketConnectionManager.SocketChannelImpl.readBuffers()
Gets the read buffers.