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