Uses of Class
org.jgrapes.io.util.ManagedBuffer
Packages that use 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
Methods in org.jgrapes.http with parameters of type ManagedBufferModifier and TypeMethodDescription<W extends Buffer>
voidWwwFormUrldecoder.feed
(ManagedBuffer<W> buffer) Feed data to the collector. -
Uses of ManagedBuffer in org.jgrapes.io
Methods in org.jgrapes.io that return types with arguments of type ManagedBufferModifier 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.Method parameters in org.jgrapes.io with type arguments of type ManagedBufferModifier 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
Methods in org.jgrapes.io.events that return ManagedBufferModifier and TypeMethodDescriptionIOEvent.buffer()
Get the managed buffer with the data from this event.Methods in org.jgrapes.io.events with parameters of type ManagedBufferModifier 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.Constructors in org.jgrapes.io.events with parameters of type ManagedBufferModifierConstructorDescriptionprotected
IOEvent
(ManagedBuffer<T> buffer, boolean endOfRecord) Instantiates a new IO event. -
Uses of ManagedBuffer in org.jgrapes.io.util
Classes in org.jgrapes.io.util with type parameters of type ManagedBufferModifier 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.Fields in org.jgrapes.io.util declared as ManagedBufferModifier and TypeFieldDescriptionprotected ManagedBuffer
<B> AbstractBufferWriter.buffer
static final ManagedBuffer
<ByteBuffer> ManagedBuffer.EMPTY_BYTE_BUFFER
static final ManagedBuffer
<CharBuffer> ManagedBuffer.EMPTY_CHAR_BUFFER
Fields in org.jgrapes.io.util with type parameters of type ManagedBufferModifier and TypeFieldDescriptionstatic final BufferCollector
<? extends ManagedBuffer<?>> BufferCollector.NOOP_COLLECTOR
A predefined buffer collector that does nothing when the managed buffer is no longer used.Methods in org.jgrapes.io.util with type parameters of type ManagedBufferModifier and TypeMethodDescriptionstatic <T extends ManagedBuffer<?>>
BufferCollector<T> BufferCollector.noopCollector()
A type-safe way to get theBufferCollector.NOOP_COLLECTOR
.Methods in org.jgrapes.io.util that return ManagedBufferModifier 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.Methods in org.jgrapes.io.util with parameters of type ManagedBufferModifier 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.Constructor parameters in org.jgrapes.io.util with type arguments of type ManagedBufferModifierConstructorDescriptionManagedBuffer
(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
Methods in org.jgrapes.net that return types with arguments of type ManagedBufferModifier and TypeMethodDescriptionSocketConnectionManager.SocketChannelImpl.readBuffers()
Gets the read buffers.