public class PacketEncoder extends com.hazelcast.internal.networking.OutboundHandler<Supplier<Packet>,ByteBuffer>
OutboundHandler
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 |
---|---|
void |
handlerAdded()
Gets called when this ChannelHandler is added to the pipeline.
|
com.hazelcast.internal.networking.HandlerStatus |
onWrite()
A callback to indicate that this OutboundHandler should be
processed.
|
initDstBuffer, initDstBuffer, initDstBuffer
public void handlerAdded()
com.hazelcast.internal.networking.ChannelHandler
handlerAdded
in class com.hazelcast.internal.networking.ChannelHandler<com.hazelcast.internal.networking.OutboundHandler,Supplier<Packet>,ByteBuffer>
public com.hazelcast.internal.networking.HandlerStatus onWrite()
com.hazelcast.internal.networking.OutboundHandler
onWrite
in class com.hazelcast.internal.networking.OutboundHandler<Supplier<Packet>,ByteBuffer>
HandlerStatus
the status of the handler after processing the src.Copyright © 2019 Hazelcast, Inc.. All rights reserved.