An
IoBufferAllocator that caches the buffers which are likely to
be reused during auto-expansion of the buffers.
In
SimpleBufferAllocator , the underlying
ByteBuffer of
the
IoBuffer is reallocated on its capacity change, which means
the newly allocated bigger
ByteBuffer replaces the old small
ByteBuffer .
A default implementation of
IoFilterChain that provides
all operations for developers who want to implement their own
transport layer once used with
AbstractIoSession .
Stores the user-defined attributes which is provided per
IoSession .
All user-defined attribute accesses in
IoSession are forwarded to
the instance of
IoSessionAttributeMap .
IoSession session = ...;
WriteFuture future = session.write(...);
// Wait until the message is completely written out to the O/S buffer.
future.join();
if( future.isWritten() )
{
// The message has been written successfully.
}
else
{
// The messsage couldn't be written out completely for some reason.
// (e.g.