Java Code Examples for io.netty.channel.ChannelHandlerContext#fireChannelUnregistered()
The following examples show how to use
io.netty.channel.ChannelHandlerContext#fireChannelUnregistered() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ChannelManagerHandler.java From iot-dc with Apache License 2.0 | 5 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { LOGGER.info("channel out! ----> {}", ctx.channel()); ChannelId channelId = ctx.channel().id(); RTUChannelInfo channelInfo = GlobalInfo.CHANNEL_INFO_MAP.remove(channelId); GlobalInfo.SN_CHANNEL_INFO_MAP.remove(channelInfo.getSn()); LOGGER.info("remove channel: {}", channelInfo); ctx.fireChannelUnregistered(); }
Example 2
Source File: LoggingHandler.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { if (logger.isEnabled(internalLevel)) { logger.log(internalLevel, format(ctx, "UNREGISTERED")); } ctx.fireChannelUnregistered(); }
Example 3
Source File: ChannelManagerHandler.java From iot-dc with Apache License 2.0 | 5 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { LOGGER.info("channel out! ----> {}", ctx.channel()); ChannelId channelId = ctx.channel().id(); RTUChannelInfo channelInfo = GlobalInfo.CHANNEL_INFO_MAP.remove(channelId); GlobalInfo.SN_CHANNEL_INFO_MAP.remove(channelInfo.getSn()); LOGGER.info("remove channel: {}", channelInfo); ctx.fireChannelUnregistered(); }
Example 4
Source File: RntbdRequestManager.java From azure-cosmosdb-java with MIT License | 5 votes |
/** * The {@link Channel} of the {@link ChannelHandlerContext} was unregistered from its {@link EventLoop} * * @param context {@link ChannelHandlerContext} to which this {@link RntbdRequestManager} belongs */ @Override public void channelUnregistered(final ChannelHandlerContext context) { this.traceOperation(context, "channelUnregistered"); if (!this.closingExceptionally) { this.completeAllPendingRequestsExceptionally(context, ON_CHANNEL_UNREGISTERED); } else { logger.debug("{} channelUnregistered exceptionally", context); } context.fireChannelUnregistered(); }
Example 5
Source File: LoggingHandler.java From netty.book.kor with MIT License | 5 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { if (logger.isEnabled(internalLevel)) { logger.log(internalLevel, format(ctx, "UNREGISTERED")); } ctx.fireChannelUnregistered(); }
Example 6
Source File: ReliableChannelHandler.java From riiablo with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { Gdx.app.debug(TAG, "channelUnregistered"); ctx.fireChannelUnregistered(); }
Example 7
Source File: AbstractHttpHandler.java From bazel with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) { failAndResetUserPromise(new ClosedChannelException()); ctx.fireChannelUnregistered(); }
Example 8
Source File: NettyChannelHandlerAdapter.java From Ak47 with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext nettyctx) throws Exception { log.debug("channelUnregistered()."); nettyctx.fireChannelUnregistered(); }
Example 9
Source File: Netty4ChannelHandlerAdapter.java From Ak47 with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext nettyctx) throws Exception { nettyctx.fireChannelUnregistered(); }
Example 10
Source File: TrafficLoggingHandler.java From armeria with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelUnregistered(); }
Example 11
Source File: Http1ResponseDecoder.java From armeria with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelUnregistered(); }
Example 12
Source File: EndpointedChannelHandler.java From riiablo with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { if (DEBUG_CALLS) Gdx.app.debug(TAG, "channelUnregistered"); ctx.fireChannelUnregistered(); }
Example 13
Source File: ReliableChannelHandler.java From riiablo with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { Gdx.app.debug(TAG, "channelUnregistered"); ctx.fireChannelUnregistered(); }
Example 14
Source File: EndpointedChannelHandler.java From riiablo with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { if (DEBUG_CALLS) Gdx.app.debug(TAG, "channelUnregistered"); ctx.fireChannelUnregistered(); }
Example 15
Source File: ExceptionChannelHandler.java From journalkeeper with Apache License 2.0 | 4 votes |
public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { ctx.fireChannelUnregistered(); }
Example 16
Source File: ExceptionHandlerFilter.java From spring-boot-netty with MIT License | 4 votes |
@Override public void channelUnregistered(final ChannelHandlerContext ctx) throws Exception { ctx.fireChannelUnregistered(); }
Example 17
Source File: AbstractHttpHandler.java From bazel-buildfarm with Apache License 2.0 | 4 votes |
@Override public void channelUnregistered(ChannelHandlerContext ctx) { failAndResetUserPromise(new ClosedChannelException()); ctx.fireChannelUnregistered(); }
Example 18
Source File: FilterLogginglHandler.java From netty-http-server with Apache License 2.0 | 4 votes |
public void channelUnregistered(ChannelHandlerContext ctx) { ctx.fireChannelUnregistered(); }
Example 19
Source File: RxtxClientHandler.java From openAGV with Apache License 2.0 | 4 votes |
public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { LOG.error("################RxtxClientHandler channelUnregistered: " + ctx.channel().id()); ctx.fireChannelUnregistered(); }