private void writePendingWrites() { if (pendingWrites != null) { pendingWrites.removeAndWriteAll(); pendingWrites = null; } }
private void writePendingWrites() { if (pendingWrites != null) { pendingWrites.removeAndWriteAll(); pendingWrites = null; } }
private void writePendingWrites() { if (pendingWrites != null) { pendingWrites.removeAndWriteAll(); pendingWrites = null; } }
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { this.queue.removeAndWriteAll(); super.channelUnregistered(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { // Send everything so we get a proper failure for those pending writes this.queue.removeAndWriteAll(); super.channelInactive(ctx); }
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { this.queue.removeAndWriteAll(); this.scheduledTimeouts.clear(); this.sentButUnacknowledgedSubContainer.clear(); this.correlationToParentContainer.clear(); this.containerCorrelationIdMap.clear(); this.responsesToBeDelivered.clear(); this.correlationIdGenerator.set(0); this.deliveredItems.set(0); this.erroredItems.set(0); this.deliveredContainers.set(0); this.erroredContainers.set(0); super.channelUnregistered(ctx); }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { // Send everything so we get a proper failure for those pending writes this.queue.removeAndWriteAll(); this.timer.stop(); this.scheduledTimeouts.clear(); this.sentButUnacknowledgedSubContainer.clear(); this.correlationToParentContainer.clear(); this.containerCorrelationIdMap.clear(); this.responsesToBeDelivered.clear(); this.correlationIdGenerator.set(0); this.deliveredItems.set(0); this.erroredItems.set(0); this.deliveredContainers.set(0); this.erroredContainers.set(0); super.channelInactive(ctx); }