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, initDstBufferdst, dst, interceptError, setChannel, src, srcpublic 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()
ChannelHandlerhandlerAdded in class ChannelHandler<OutboundHandler,Void,ByteBuffer>public HandlerStatus onWrite()
OutboundHandleronWrite in class OutboundHandler<Void,ByteBuffer>HandlerStatus the status of the handler after processing the src.public void signalProtocolLoaded()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.