Package io.atomix.cluster.messaging.impl
Class HeartbeatSetupHandler.Client
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.atomix.cluster.messaging.impl.HeartbeatSetupHandler
io.atomix.cluster.messaging.impl.HeartbeatSetupHandler.Client
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
HeartbeatSetupHandler
The client sends a message to exchange the heartbeatTimeout with the server and then waits for
the server to confirm that heartbeats are enabled. If the server supports heartbeats, it sets
up
HeartbeatHandler.Client-
Nested Class Summary
Nested classes/interfaces inherited from class io.atomix.cluster.messaging.impl.HeartbeatSetupHandler
HeartbeatSetupHandler.Client, HeartbeatSetupHandler.ServerNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class io.atomix.cluster.messaging.impl.HeartbeatSetupHandler
afterHandler, forwardHeartbeats, headerDecoder, headerEncoder, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read, writeMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Constructor Details
-
Client
public Client(String afterHandler, org.slf4j.Logger log, AtomicLong messageIdGenerator, Address advertisedAddress, Duration heartbeatTimeout, Duration heartbeatInterval, boolean forwardHeartbeats)
-
-
Method Details
-
handlerAdded
- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter- Throws:
Exception
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-