|
||||||||||
| 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. |
boolean |
full()
|
long |
getReadCounter()
|
long |
getWriteCounter()
|
java.lang.Object |
read()
Non-blocking channel based decoding. |
void |
setReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
|
void |
setWritableByteChannel(java.nio.channels.WritableByteChannel channel)
|
ProtocolCodec.BufferState |
write(java.lang.Object value)
Non-blocking channel based encoding. |
| Method Detail |
|---|
void setReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
channel -
java.lang.Object read()
throws java.io.IOException
java.io.IOExceptionlong 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.IOExceptionboolean full()
long getWriteCounter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||