public class PacketEncoder extends Object implements com.hazelcast.internal.networking.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)
com.hazelcast.internal.networking.ChannelOutboundHandleronWrite in interface com.hazelcast.internal.networking.ChannelOutboundHandler<Packet>packet - the Frame to writedst - the destination ByteBufferCopyright © 2018 Hazelcast, Inc.. All rights reserved.