public class ClientProtocolEncoder extends OutboundHandler<ByteBuffer,ByteBuffer>
OutboundHandler
that writes the client protocol bytes
and once they have been fully written, it removes itself from pipeline.
On a plain connection, this should be the last encoder in the pipeline.
Even though the ClientProtocolEncoder has a ByteBuffer as src, it will
never consume bytes from this source.channel, dst, src
Constructor and Description |
---|
ClientProtocolEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
handlerAdded()
Gets called when this ChannelHandler is added to the pipeline.
|
HandlerStatus |
onWrite()
A callback to indicate that this OutboundHandler should be
processed.
|
initDstBuffer, initDstBuffer, initDstBuffer
dst, dst, interceptError, setChannel, src, src
public void handlerAdded()
ChannelHandler
handlerAdded
in class ChannelHandler<OutboundHandler,ByteBuffer,ByteBuffer>
public HandlerStatus onWrite()
OutboundHandler
onWrite
in class OutboundHandler<ByteBuffer,ByteBuffer>
HandlerStatus
the status of the handler after processing the src.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.