public class UnifiedProtocolDecoder extends com.hazelcast.internal.networking.InboundHandler<ByteBuffer,Void>
InboundHandlerthat reads the protocol bytes
Protocolsand based on the protocol it creates the appropriate handlers. The ProtocolDecoder doesn't forward to the dst; it replaces itself once the protocol bytes are known. So that is why the Void type for dst.
|Constructor and Description|
|Modifier and Type||Method and Description|
Gets called when this ChannelHandler is added to the pipeline.
A callback to indicate that data is available in the src to be processed.
dst, dst, interceptError, setChannel, src, src
public void handlerAdded()
public com.hazelcast.internal.networking.HandlerStatus onRead() throws Exception
Exception- if something fails while reading data from the src or processing the data (e.g. when a Packet fails to get processed). When an exception is thrown, the
Copyright © 2019 Hazelcast, Inc.. All rights reserved.