public interface ChannelFunction
Modifier and Type | Method and Description |
---|---|
void |
afterRead(ByteBuffer buf,
int position,
int length)
Is called on the
ByteBuffer after a read operation completes |
void |
beforeWrite(ByteBuffer buf,
int position,
int length)
Is called on the
ByteBuffer before a write operation completes |
void |
complete()
Is called to complete the
ChannelFunction . |
void afterRead(ByteBuffer buf, int position, int length) throws IOException
ByteBuffer
after a read operation completesbuf
- the ByteBuffer
to operate onposition
- the index in the ByteBuffer
to start fromlength
- the number of byted to operate onIOException
- thrown if an error accourvoid beforeWrite(ByteBuffer buf, int position, int length) throws IOException
ByteBuffer
before a write operation completesbuf
- the ByteBuffer
to operate onposition
- the index in the ByteBuffer
to start fromlength
- the number of byted to operate onIOException
- thrown if an error accourvoid complete() throws IOException
ChannelFunction
. Access it after complete
is called may result in unexpected behavior.IOException
- thrown if an error accourCopyright © 2013 JBoss by Red Hat. All rights reserved.