protected void closeChannel(ChannelHandlerContext ctx, Channel channel, ConnectionCloseType evt, ChannelPromise promise) { switch (evt) { case DELAYED_GRACEFUL: gracefullyWithDelay(ctx, channel, promise); break; case GRACEFUL: gracefully(channel, promise); break; case IMMEDIATE: immediately(channel, promise); break; default: throw new IllegalArgumentException("Unknown ConnectionCloseEvent type! - " + String.valueOf(evt)); } }
protected void closeChannel(ChannelHandlerContext ctx, Channel channel, ConnectionCloseType evt, ChannelPromise promise) { switch (evt) { case DELAYED_GRACEFUL: gracefullyWithDelay(ctx, channel, promise); break; case GRACEFUL: gracefully(channel, promise); break; case IMMEDIATE: immediately(channel, promise); break; default: throw new IllegalArgumentException("Unknown ConnectionCloseEvent type! - " + String.valueOf(evt)); } }
protected void closeChannel(ChannelHandlerContext ctx, Channel channel, ConnectionCloseType evt, ChannelPromise promise) { switch (evt) { case DELAYED_GRACEFUL: gracefullyWithDelay(ctx, channel, promise); break; case GRACEFUL: gracefully(channel, promise); break; case IMMEDIATE: immediately(channel, promise); break; default: throw new IllegalArgumentException("Unknown ConnectionCloseEvent type! - " + String.valueOf(evt)); } }