@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { handler.channelInactive(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }
private void invokeChannelInactive() { if (invokeHandler()) { try { ((ChannelInboundHandler) handler()).channelInactive(this); } catch (Throwable t) { notifyHandlerException(t); } } else { fireChannelInactive(); } }
private void invokeChannelInactive() { if (invokeHandler()) { try { ((ChannelInboundHandler) handler()).channelInactive(this); } catch (Throwable t) { notifyHandlerException(t); } } else { fireChannelInactive(); } }
private void invokeChannelInactive() { if (invokeHandler()) { try { ((ChannelInboundHandler) handler()).channelInactive(this); } catch (Throwable t) { notifyHandlerException(t); } } else { fireChannelInactive(); } }
@Test public void shouldNotPropagateChannelInactive() throws Exception { ChannelInboundHandler next = mock( ChannelInboundHandler.class ); BoltConnection connection = mock( BoltConnection.class ); channel = new EmbeddedChannel( new HouseKeeper( connection, NullLog.getInstance() ), next ); channel.pipeline().fireChannelInactive(); verify( next, never() ).channelInactive( any() ); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }
private void invokeChannelInactive() { if (invokeHandler()) { try { ((ChannelInboundHandler) handler()).channelInactive(this); } catch (Throwable t) { notifyHandlerException(t); } } else { fireChannelInactive(); } }
private void invokeChannelInactive() { if (invokeHandler()) { try { ((ChannelInboundHandler) handler()).channelInactive(this); } catch (Throwable t) { notifyHandlerException(t); } } else { fireChannelInactive(); } }
private void invokeChannelInactive() { if (invokeHandler()) { try { ((ChannelInboundHandler) handler()).channelInactive(this); } catch (Throwable t) { notifyHandlerException(t); } } else { fireChannelInactive(); } }