提交 3dcb6369 编写于 作者: N Nikita Koksharov

Fixed - CommandsQueue handler consumes 100% of CPU resources. #2299

上级 16b28b7a
......@@ -18,6 +18,7 @@ package org.redisson.client.handler;
import java.io.IOException;
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.regex.Pattern;
import org.redisson.client.ChannelName;
......@@ -53,7 +54,7 @@ public class CommandsQueue extends ChannelDuplexHandler {
public static final AttributeKey<QueueCommand> CURRENT_COMMAND = AttributeKey.valueOf("promise");
private final Queue<QueueCommandHolder> queue = PlatformDependent.newMpscQueue();
private final Queue<QueueCommandHolder> queue = new ConcurrentLinkedQueue<>();
private final ChannelFutureListener listener = new ChannelFutureListener() {
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册