A netty ChannelHandler for decoding data into protocol objects on the way in, and packing objects into byte arrays on the way out.
An Encoder turns things of type A
into ChannelBuffer
s, for outbound traffic (server
responses or client requests).
The next step for processing after this stage.
The next step for processing after this stage. - Incomplete: Need more data; call the same stage again later when more data arrives. - GoToStage(stage): Finished with this stage; continue with another stage. - Emit(obj): Complete protocol object decoded; return to the first stage and start a new object.
A decoder stage.
A netty ChannelHandler for decoding data into protocol objects on the way in, and packing objects into byte arrays on the way out. Optionally, the bytes in/out are tracked.