This closes #371 Removing unecessary concurrent collection. Replacing by regular one

This commit is contained in:
Andy Taylor 2016-02-04 18:31:31 +00:00
commit 33b1f7275c
1 changed files with 3 additions and 2 deletions

View File

@ -17,8 +17,9 @@
package org.apache.activemq.artemis.core.remoting.impl.netty;
import java.net.SocketAddress;
import java.util.Deque;
import java.util.Map;
import java.util.concurrent.ConcurrentLinkedDeque;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.Semaphore;
import io.netty.buffer.ByteBuf;
@ -70,7 +71,7 @@ public class NettyConnection implements Connection {
/** if {@link #isWritable(ReadyListener)} returns false, we add a callback
* here for when the connection (or Netty Channel) becomes available again. */
private final ConcurrentLinkedDeque<ReadyListener> readyListeners = new ConcurrentLinkedDeque<>();
private final Deque<ReadyListener> readyListeners = new LinkedBlockingDeque<>();
// Static --------------------------------------------------------