- Enclosing class:
- public static class ChannelResponse.Read
- extends ChannelResponse
Contains a buffer with the non-blocking data read from the given channel
(originally initiated by a prior
SelectionKeyOP_READ ops); The data
buffer.remaining() bytes, and is contained between
0 == buffer.position() and
as usual with NIO; A buffer with
indicates that end-of-stream has been reached for the given channel.
Once your application has completely processed the contained buffer, you
can for efficiency consider reusing it (e.g. via a buffer pool).
public ChannelResponse.Read(NetAgent agent,
public ByteBuffer getBuffer()
public String toString()
toString in class