public class MemberProtocolEncoder extends OutboundHandler<Void,ByteBuffer>
channel, dst, src
Constructor and Description |
---|
MemberProtocolEncoder(OutboundHandler[] next)
Decodes first 3 incoming bytes, validates against
supportedProtocol and, when
matching, replaces itself in the inbound pipeline with the next InboundHandler . |
Modifier and Type | Method and Description |
---|---|
void |
handlerAdded()
Gets called when this ChannelHandler is added to the pipeline.
|
HandlerStatus |
onWrite()
A callback to indicate that this OutboundHandler should be
processed.
|
void |
signalProtocolLoaded() |
initDstBuffer, initDstBuffer, initDstBuffer
dst, dst, interceptError, setChannel, src, src
public MemberProtocolEncoder(OutboundHandler[] next)
supportedProtocol
and, when
matching, replaces itself in the inbound pipeline with the next InboundHandler
.next
- the OutboundHandler
to replace this one in the outbound pipeline
upon match of protocol bytespublic void handlerAdded()
ChannelHandler
handlerAdded
in class ChannelHandler<OutboundHandler,Void,ByteBuffer>
public HandlerStatus onWrite()
OutboundHandler
onWrite
in class OutboundHandler<Void,ByteBuffer>
HandlerStatus
the status of the handler after processing the src.public void signalProtocolLoaded()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.