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