@PrivateApi public class TextDecoder extends InboundHandler<ByteBuffer,Void>
channel, dst, src| Constructor and Description |
|---|
TextDecoder(TcpIpConnection connection,
TextEncoder encoder) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
TextEncoder |
getEncoder() |
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, initSrcBufferdst, dst, handlerAdded, interceptError, setChannel, src, srcpublic TextDecoder(TcpIpConnection connection, TextEncoder encoder)
public void sendResponse(TextCommand command)
public HandlerStatus onRead() throws Exception
InboundHandleronRead 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.