@PrivateApi public class TextEncoder extends Object implements com.hazelcast.internal.networking.ChannelOutboundHandler<com.hazelcast.internal.ascii.TextCommand>
| Constructor and Description |
|---|
TextEncoder(TcpIpConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
enqueue(com.hazelcast.internal.ascii.TextCommand response) |
boolean |
onWrite(com.hazelcast.internal.ascii.TextCommand textCommand,
ByteBuffer dst)
A callback to indicate that the Frame should be written to the destination ByteBuffer.
|
public TextEncoder(TcpIpConnection connection)
public void enqueue(com.hazelcast.internal.ascii.TextCommand response)
public boolean onWrite(com.hazelcast.internal.ascii.TextCommand textCommand,
ByteBuffer dst)
throws Exception
com.hazelcast.internal.networking.ChannelOutboundHandleronWrite in interface com.hazelcast.internal.networking.ChannelOutboundHandler<com.hazelcast.internal.ascii.TextCommand>textCommand - the Frame to writedst - the destination ByteBufferException - if something fails while writing to ByteBuffer. When an exception is thrown, the
ChannelErrorHandler is called.Copyright © 2018 Hazelcast, Inc.. All rights reserved.