@Override public final ChannelFuture close(ChannelPromise promise) { // We need to call runPendingTasks() before calling super.close() as there may be something in the queue // that needs to be run before the actual close takes place. runPendingTasks(); ChannelFuture future = super.close(promise); // Now finish everything else and cancel all scheduled tasks that were not ready set. finishPendingTasks(true); return future; }
@Override public final ChannelFuture close(ChannelPromise promise) { // We need to call runPendingTasks() before calling super.close() as there may be something in the queue // that needs to be run before the actual close takes place. runPendingTasks(); ChannelFuture future = super.close(promise); // Now finish everything else and cancel all scheduled tasks that were not ready set. finishPendingTasks(true); return future; }
@Override public final ChannelFuture close(ChannelPromise promise) { // We need to call runPendingTasks() before calling super.close() as there may be something in the queue // that needs to be run before the actual close takes place. runPendingTasks(); ChannelFuture future = super.close(promise); // Now finish everything else and cancel all scheduled tasks that were not ready set. finishPendingTasks(true); return future; }
@Override public final ChannelFuture close(ChannelPromise promise) { // We need to call runPendingTasks() before calling super.close() as there may be something in the queue // that needs to be run before the actual close takes place. runPendingTasks(); ChannelFuture future = super.close(promise); // Now finish everything else and cancel all scheduled tasks that were not ready set. finishPendingTasks(true); return future; }
@Override public final ChannelFuture close(ChannelPromise promise) { // We need to call runPendingTasks() before calling super.close() as there may be something in the queue // that needs to be run before the actual close takes place. runPendingTasks(); ChannelFuture future = super.close(promise); // Now finish everything else and cancel all scheduled tasks that were not ready set. finishPendingTasks(true); return future; }
@Override public final ChannelFuture close(ChannelPromise promise) { // We need to call runPendingTasks() before calling super.close() as there may be something in the queue // that needs to be run before the actual close takes place. runPendingTasks(); ChannelFuture future = super.close(promise); // Now finish everything else and cancel all scheduled tasks that were not ready set. finishPendingTasks(true); return future; }
@Override public void stopService() { super.stopService(); this.rpcContext.clear(); this.sendQueueCache.clear(); this.callListeners.clear(); channel.close(); if(eventLoopGroup!=null){ try { eventLoopGroup.shutdownGracefully().sync(); } catch (InterruptedException e) { } } }
@Override public void stopService() { super.stopService(); if(this.channel!=null){ this.channel.close(); } if(this.eventLoopGroup!=null){ try { this.eventLoopGroup.shutdownGracefully().sync(); } catch (InterruptedException e) { e.printStackTrace(); } } this.stopListeners(); this.callListeners.clear(); }