public interface WriteHandler<F extends OutboundFrame>
SocketWriterwill have its own
WriteHandlerinstance. Therefor it doesn't need to be thread-safe. For more information about the WriteHandler (and handlers in generally), have a look at the
boolean onWrite(F frame, ByteBuffer dst) throws Exception
frame- 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.