List of usage examples for io.netty.channel ChannelHandlerContext fireChannelInactive
@Override ChannelHandlerContext fireChannelInactive();
From source file:org.wso2.carbon.transport.http.netty.sender.RedirectHandler.java
License:Open Source License
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (LOG.isDebugEnabled()) { LOG.debug("Channel " + ctx.channel().id() + " gets inactive so closing it from RedirectHandler."); }/*w w w.ja v a 2 s. c o m*/ if (originalChannelContext == ctx) { //If this is the original channel it must be destroyed from the pool ctx.fireChannelInactive(); } else { ctx.close(); } }
From source file:reactor.ipc.netty.channel.NettyChannelHandler.java
License:Open Source License
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { try {/*from w ww . java2 s .c o m*/ operations(ctx).onChannelComplete(); } catch (Throwable err) { Exceptions.throwIfFatal(err); operations(ctx).onChannelError(err); } finally { ctx.fireChannelInactive(); } }
From source file:sailfish.remoting.handler.NegotiateChannelHandler.java
License:Apache License
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (!ChannelUtil.clientSide(ctx)) { String uuidStr = ctx.channel().attr(ChannelAttrKeys.uuidStr).get(); synchronized (uuidStr.intern()) { ReferenceCountedServerExchangeChannelGroup channelGroup = (ReferenceCountedServerExchangeChannelGroup) uuid2ChannelGroup .get(uuidStr);//from w ww .j ava2 s .c o m if (null != channelGroup) { channelGroup.release(); } } } ctx.fireChannelInactive(); }
From source file:sk.broker.MQTTMessageLogger.java
License:Open Source License
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { String clientID = ctx.channel().toString();//NettyUtils.clientID(ctx.channel()); if (clientID != null && !clientID.isEmpty()) { LOG.info("Channel closed <{}>", clientID); }/* w w w . j a v a2 s .c om*/ ctx.fireChannelInactive(); }
From source file:ws.wamp.jawampa.transport.netty.WampDeserializationHandler.java
License:Apache License
@Override public void channelInactive(ChannelHandlerContext ctx) { readState = ReadState.Closed; ctx.fireChannelInactive(); }