private void flushPartition(Object partitionKey, ConcurrentLinkedQueue<IdleChannel> partition) { if (partition != null) { partitions.remove(partitionKey); for (IdleChannel idleChannel : partition) close(idleChannel.channel); } }
private void flushPartition(Object partitionKey, ConcurrentLinkedQueue<IdleChannel> partition) { if (partition != null) { partitions.remove(partitionKey); for (IdleChannel idleChannel : partition) close(idleChannel.channel); } }
private void flushPartition(Object partitionKey, ConcurrentLinkedQueue<IdleChannel> partition) { if (partition != null) { partitions.remove(partitionKey); for (IdleChannel idleChannel : partition) close(idleChannel.channel); } }
private void flushPartition(Object partitionKey, ConcurrentLinkedQueue<IdleChannel> partition) { if (partition != null) { partitions.remove(partitionKey); for (IdleChannel idleChannel : partition) close(idleChannel.channel); } }
@Override public void destroy() { if (isClosed.getAndSet(true)) return; for (ConcurrentLinkedQueue<IdleChannel> partition : partitions.values()) { for (IdleChannel idleChannel : partition) close(idleChannel.channel); } partitions.clear(); channelId2Creation.clear(); }
/** * {@inheritDoc} */ public void destroy() { if (isClosed.getAndSet(true)) return; for (ConcurrentLinkedQueue<IdleChannel> partition : partitions.values()) { for (IdleChannel idleChannel : partition) close(idleChannel.channel); } partitions.clear(); channelId2Creation.clear(); }
@Override public void destroy() { if (isClosed.getAndSet(true)) return; for (ConcurrentLinkedQueue<IdleChannel> partition : partitions.values()) { for (IdleChannel idleChannel : partition) close(idleChannel.channel); } partitions.clear(); channelId2Creation.clear(); }
/** * {@inheritDoc} */ public void destroy() { if (isClosed.getAndSet(true)) return; for (ConcurrentLinkedQueue<IdleChannel> partition : partitions.values()) { for (IdleChannel idleChannel : partition) close(idleChannel.channel); } partitions.clear(); channelId2Creation.clear(); }