Class VIPRequestHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- com.linkedin.alpini.netty4.handlers.ChannelInitializer<io.netty.channel.Channel>
-
- com.linkedin.alpini.netty4.handlers.VIPRequestHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable public class VIPRequestHandler extends ChannelInitializer<io.netty.channel.Channel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVIPRequestHandler.State
-
Constructor Summary
Constructors Constructor Description VIPRequestHandler(java.lang.String healthcheckUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitChannel(io.netty.channel.Channel ch)This method will be called once theChannelwas registered.protected booleanisHealty()voidshutdown()voidstart()VIPRequestHandler.Statestate()-
Methods inherited from class com.linkedin.alpini.netty4.handlers.ChannelInitializer
channelRegistered, currentContext, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
initChannel
protected void initChannel(io.netty.channel.Channel ch) throws java.lang.ExceptionDescription copied from class:ChannelInitializerThis method will be called once theChannelwas registered. After the method returns this instance will be removed from theChannelPipelineof theChannel.- Specified by:
initChannelin classChannelInitializer<io.netty.channel.Channel>- Parameters:
ch- theChannelwhich was registered.- Throws:
java.lang.Exception- is thrown if an error occurs. In that case it will be handled byChannelInitializer.exceptionCaught(ChannelHandlerContext, Throwable)which will by default close theChannel.
-
isHealty
protected boolean isHealty()
-
state
public VIPRequestHandler.State state()
-
start
public void start()
-
shutdown
public void shutdown()
-
-