public class ClientWriteHandler extends Object implements WriteHandler<ClientMessage>
WriteHandlerfor the new-client. It writes ClientMessages to the ByteBuffer.
|Constructor and Description|
|Modifier and Type||Method and Description|
A callback to indicate that the Frame should be written to the destination ByteBuffer.
public boolean onWrite(ClientMessage message, ByteBuffer dst) throws Exception
message- the Frame to write
dst- the destination ByteBuffer
Exception- 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.