|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolCodec
Interface to encode and decode commands in and out of a a non blocking channel.
Nested Class Summary | |
---|---|
static class |
ProtocolCodec.BufferState
|
Method Summary | |
---|---|
ProtocolCodec.BufferState |
flush()
Attempts to complete the previous write which did not complete. |
long |
getReadCounter()
|
long |
getWriteCounter()
|
java.lang.String |
protocol()
|
java.lang.Object |
read()
Non-blocking channel based decoding. |
void |
setReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
|
void |
setWritableByteChannel(java.nio.channels.WritableByteChannel channel)
|
void |
unread(org.fusesource.hawtbuf.Buffer buffer)
Pushes back a buffer as being unread. |
ProtocolCodec.BufferState |
write(java.lang.Object value)
Non-blocking channel based encoding. |
Method Detail |
---|
java.lang.String protocol()
void setReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
channel
- java.lang.Object read() throws java.io.IOException
java.io.IOException
void unread(org.fusesource.hawtbuf.Buffer buffer)
buffer
- long getReadCounter()
void setWritableByteChannel(java.nio.channels.WritableByteChannel channel)
ProtocolCodec.BufferState write(java.lang.Object value) throws java.io.IOException
java.io.IOException
ProtocolCodec.BufferState flush() throws java.io.IOException
java.io.IOException
long getWriteCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |