public class MemberChannelInitializer extends Object implements ChannelInitializer
ChannelInitializerthat runs on a member. It will identify the channel based on the protocol. If the channel is a 'client', it will automatically send the cluster protocol to the other side since both are members. This way the 'server' knows what it is dealing with. If the channel is a 'server', it needs to wait sending any information before the 'client' has send the protocol. If the 'client' is another member, it receives the cluster protocol. If the client is a true client, we don't send anything. If the channel is a 'server' and the client is ASCII client, it will not receive a specific ASCII protocol; if the first 3 bytes are not a known protocol, it will be interpreted as an ASCII (TextCommand) request.
|Constructor and Description|
|Modifier and Type||Method and Description|
Called when the Channel receives the first data.
called when 'client' side member connects; will call with protocol "MEMBER' indirectly called 'server' side when the 'client' has told the protocol.
public InitResult<ChannelInboundHandler> initInbound(Channel channel) throws IOException
Channelthat requires initialization
public InitResult<ChannelOutboundHandler> initOutbound(Channel channel)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.