Java Code Examples for io.netty.channel.ChannelHandlerContext#deregister()

The following examples show how to use io.netty.channel.ChannelHandlerContext#deregister() . 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: LoggingHandler.java    From netty.book.kor with MIT License 5 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    if (logger.isEnabled(internalLevel)) {
        logger.log(internalLevel, format(ctx, "DEREGISTER"));
    }
    ctx.deregister(promise);
}
 
Example 2
Source File: ReregisterChannelUtil.java    From blynk-server with GNU General Public License v3.0 5 votes vote down vote up
public static void reRegisterChannel(ChannelHandlerContext ctx,
                                     Session session, ChannelFutureListener completeHandler) {
    ChannelFuture cf = ctx.deregister();
    cf.addListener(new ChannelFutureListener() {
        @Override
        public void operationComplete(ChannelFuture channelFuture) {
            session.initialEventLoop.register(channelFuture.channel()).addListener(completeHandler);
        }
    });
}
 
Example 3
Source File: LoggingHandler.java    From netty-4.1.22 with Apache License 2.0 5 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    if (logger.isEnabled(internalLevel)) {
        logger.log(internalLevel, format(ctx, "DEREGISTER"));
    }
    ctx.deregister(promise);
}
 
Example 4
Source File: NettyChannelHandlerAdapter.java    From Ak47 with Apache License 2.0 5 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext nettyctx, ChannelPromise promise)
        throws Exception {
    log.debug("deregister().");
    
    nettyctx.deregister(promise);
}
 
Example 5
Source File: ConnectInterceptingHandler.java    From java-dcp-client with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  ctx.deregister(promise);
}
 
Example 6
Source File: Netty4ChannelHandlerAdapter.java    From Ak47 with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext nettyctx, ChannelPromise promise)
        throws Exception {
    nettyctx.deregister(promise);
}
 
Example 7
Source File: TsiFrameHandler.java    From grpc-java with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) {
  ctx.deregister(promise);
}
 
Example 8
Source File: KeyValueFeatureHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 9
Source File: EndpointedChannelHandler.java    From riiablo with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  if (DEBUG_CALLS) Gdx.app.debug(TAG, "deregister");
  ctx.deregister(promise);
}
 
Example 10
Source File: ReliableChannelHandler.java    From riiablo with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
  Gdx.app.debug(TAG, "deregister");
  ctx.deregister(promise);
}
 
Example 11
Source File: SslHandler.java    From netty4.0.27Learn with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 12
Source File: SpdyFrameCodec.java    From netty4.0.27Learn with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 13
Source File: KeyValueSelectBucketHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 14
Source File: AbstractHttpHandler.java    From bazel-buildfarm with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("FutureReturnValueIgnored")
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) {
  failAndResetUserPromise(new ClosedChannelException());
  ctx.deregister(promise);
}
 
Example 15
Source File: FilterLogginglHandler.java    From netty-http-server with Apache License 2.0 4 votes vote down vote up
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) {
    ctx.deregister(promise);
}
 
Example 16
Source File: SslHandler.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 17
Source File: AbstractSniHandler.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 18
Source File: KeyValueAuthHandler.java    From couchbase-jvm-core with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 19
Source File: HttpConnectionHandler.java    From netty-http2 with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}
 
Example 20
Source File: HttpClientUpgradeHandler.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
@Override
public void deregister(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
    ctx.deregister(promise);
}