public class PacketEncoder extends Object implements ChannelOutboundHandler<Packet>
ChannelOutboundHandler that for member to member communication.
 It writes Packet instances to the ByteBuffer.
 It makes use of a flyweight to allow the sharing of a packet-instance over multiple connections. The flyweight contains
 the actual 'position' state of what has been written.PacketDecoder| Constructor and Description | 
|---|
PacketEncoder()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
onWrite(Packet packet,
       ByteBuffer dst)
A callback to indicate that the Frame should be written to the destination ByteBuffer. 
 | 
public boolean onWrite(Packet packet, ByteBuffer dst)
ChannelOutboundHandleronWrite in interface ChannelOutboundHandler<Packet>packet - the Frame to writedst - the destination ByteBufferCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.