List of usage examples for io.netty.channel ChannelHandler handlerRemoved
void handlerRemoved(ChannelHandlerContext ctx) throws Exception;
From source file:io.reactivex.netty.pipeline.ReadTimeoutPipelineConfigurator.java
License:Apache License
private static void disableHandler(ChannelHandler timeoutHandler, ChannelHandlerContext handlerContext) { try {// w w w . j av a2 s.c o m timeoutHandler.handlerRemoved(handlerContext); } catch (Exception e) { logger.error("Failed to remove readtimeout handler. This connection will be discarded.", e); handlerContext.channel().attr(ClientRequestResponseConverter.DISCARD_CONNECTION).set(true); } }