@PrivateApi public class TextWriteHandler extends Object implements WriteHandler<TextCommand>
Constructor and Description |
---|
TextWriteHandler(TcpIpConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
enqueue(TextCommand response) |
boolean |
onWrite(TextCommand textCommand,
ByteBuffer dst)
A callback to indicate that the Frame should be written to the destination ByteBuffer.
|
public TextWriteHandler(TcpIpConnection connection)
public void enqueue(TextCommand response)
public boolean onWrite(TextCommand textCommand, ByteBuffer dst) throws Exception
WriteHandler
onWrite
in interface WriteHandler<TextCommand>
textCommand
- the Frame to writedst
- the destination ByteBufferException
- if something fails while writing to ByteBuffer. When an exception is thrown, the TcpIpConnection is
closed. There is no point continuing with a potentially corrupted stream.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.