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 | newFrame(FrameHeaderData headerData) |
void newFrame(FrameHeaderData headerData)
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 bytes to operate onIOException
- thrown if an error occursvoid 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 bytes to operate onIOException
- thrown if an error occursvoid complete() throws IOException
ChannelFunction
. Access it after complete is called may result in unexpected behavior.IOException
- thrown if an error occursCopyright © 2017 JBoss by Red Hat. All rights reserved.