public class MemberProtocolEncoder extends com.hazelcast.internal.networking.OutboundHandler<Void,ByteBuffer>
Constructor and Description |
---|
MemberProtocolEncoder(com.hazelcast.internal.networking.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.
|
com.hazelcast.internal.networking.HandlerStatus |
onWrite()
A callback to indicate that this OutboundHandler should be
processed.
|
void |
signalProtocolLoaded() |
initDstBuffer, initDstBuffer, initDstBuffer
public MemberProtocolEncoder(com.hazelcast.internal.networking.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()
com.hazelcast.internal.networking.ChannelHandler
handlerAdded
in class com.hazelcast.internal.networking.ChannelHandler<com.hazelcast.internal.networking.OutboundHandler,Void,ByteBuffer>
public com.hazelcast.internal.networking.HandlerStatus onWrite()
com.hazelcast.internal.networking.OutboundHandler
onWrite
in class com.hazelcast.internal.networking.OutboundHandler<Void,ByteBuffer>
HandlerStatus
the status of the handler after processing the src.public void signalProtocolLoaded()
Copyright © 2019 Hazelcast, Inc.. All rights reserved.