Package org.jgrapes.io.util
package org.jgrapes.io.util
Utility classes, mainly for adapted buffers to specific needs.
-
ClassDescriptionAbstractBufferWriter<B extends Buffer>A base class for
CharBufferWriter
andByteBufferWriter
.Used to notify interested objects about the changed availability of permits.BufferCollector<B extends ManagedBuffer<?>>Defines the method of a buffer collector.AnOutputStream
that is backed byByteBuffer
s obtained from a queue.AnWriter
that encodes the data written to it and stores it in aByteBuffer
obtained from a queue.AnWriter
that is backed byCharBuffer
s obtained from a queue.A base class for components that manageSubchannel
s representing some kind of connection to a server or service.A filter that copies all data read into a buffer.May be implemented by classes that can consume input events to support generic usage.AManagedBufferStreamer
that feeds the data to a JSON parser.Collects character data from buffers and makes it available as complete lines.Provides an I/O subchannel that is linked to another I/O subchannel.ManagedBuffer<T extends Buffer>A wrapper around aBuffer
that maintains a lock count for that buffer.A queue based buffer pool.An MBean interface for getting information about the managed buffer pools.Information about a single managed pool.Three views on the existing pool.AReader
that provides the data from theManagedBuffer
s fed to it to a consumer.Starts a thread with a synchronous consumer of input provided by aReader
which is fed with data fromManagedBuffer
s (usually obtained fromInput
events).May be used to associate (pending)Output
events with another event.A class that manages a set of permits and notifies listeners about changes of availability.Cleans up threads if some object has been garbage collected.