@PrivateApi public abstract class TextDecoder extends com.hazelcast.internal.networking.InboundHandler<ByteBuffer,Void>
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.
|
com.hazelcast.internal.networking.HandlerStatus |
onRead()
A callback to indicate that data is available in the src to be
processed.
|
void |
publishRequest(com.hazelcast.internal.ascii.TextCommand command) |
void |
sendResponse(com.hazelcast.internal.ascii.TextCommand command) |
initSrcBuffer, initSrcBuffer
public TextDecoder(TcpIpConnection connection, TextEncoder encoder, com.hazelcast.nio.ascii.TextProtocolFilter textProtocolFilter, TextParsers textParsers, boolean rootDecoder)
public void sendResponse(com.hazelcast.internal.ascii.TextCommand command)
public void handlerAdded()
com.hazelcast.internal.networking.ChannelHandler
handlerAdded
in class com.hazelcast.internal.networking.ChannelHandler<com.hazelcast.internal.networking.InboundHandler,ByteBuffer,Void>
public com.hazelcast.internal.networking.HandlerStatus onRead() throws Exception
com.hazelcast.internal.networking.InboundHandler
onRead
in class com.hazelcast.internal.networking.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(com.hazelcast.internal.ascii.TextCommand command)
public TextEncoder getEncoder()
public void closeConnection()
Copyright © 2019 Hazelcast, Inc.. All rights reserved.