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
CharBufferWriterandByteBufferWriter.Used to notify interested objects about the changed availability of permits.BufferCollector<B extends ManagedBuffer<?>>Defines the method of a buffer collector.AnOutputStreamthat is backed byByteBuffers obtained from a queue.AnWriterthat encodes the data written to it and stores it in aByteBufferobtained from a queue.AnWriterthat is backed byCharBuffers obtained from a queue.A base class for components that manageSubchannels 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.AManagedBufferStreamerthat 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 aBufferthat 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.AReaderthat provides the data from theManagedBuffers fed to it to a consumer.Starts a thread with a synchronous consumer of input provided by aReaderwhich is fed with data fromManagedBuffers (usually obtained fromInputevents).May be used to associate (pending)Outputevents 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.