Package io.atomix.cluster.messaging.impl
Class HeartbeatSetupHandler.Server
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.Server
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
HeartbeatSetupHandler
The server waits for a message to enable heartbeats on this connection. When such request is
received, he replies to the client in order to enable the heartbeats. In that case, it sets up
a
HeartbeatHandler.Server-
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) 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, handlerAdded, 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
handlerAdded, handlerRemoved
-
Constructor Details
-
Server
-
-
Method Details
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-