@PrivateApi public abstract class TextDecoder extends InboundHandler<ByteBuffer,Void>
channel, dst, src
Constructor and Description |
---|
TextDecoder(TcpIpConnection connection,
TextEncoder encoder,
com.hazelcast.nio.ascii.TextProtocolFilter textProtocolFilter,
TextParsers textParsers,
boolean rootDecoder) |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
TextEncoder |
getEncoder() |
void |
handlerAdded()
Gets called when this ChannelHandler is added to the pipeline.
|
HandlerStatus |
onRead()
A callback to indicate that data is available in the src to be
processed.
|
void |
publishRequest(TextCommand command) |
void |
sendResponse(TextCommand command) |
initSrcBuffer, initSrcBuffer
dst, dst, interceptError, setChannel, src, src
public TextDecoder(TcpIpConnection connection, TextEncoder encoder, com.hazelcast.nio.ascii.TextProtocolFilter textProtocolFilter, TextParsers textParsers, boolean rootDecoder)
public void sendResponse(TextCommand command)
public void handlerAdded()
ChannelHandler
handlerAdded
in class ChannelHandler<InboundHandler,ByteBuffer,Void>
public HandlerStatus onRead() throws Exception
InboundHandler
onRead
in class InboundHandler<ByteBuffer,Void>
Exception
- if something fails while reading data from the src
or processing the data (e.g. when a Packet fails to get processed). When an
exception is thrown, the ChannelErrorHandler
is called.public void publishRequest(TextCommand command)
public TextEncoder getEncoder()
public void closeConnection()
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.