diff --git a/src/main/java/org/redisson/command/CommandBatchService.java b/src/main/java/org/redisson/command/CommandBatchService.java index 835cfb2db..68b56a8aa 100644 --- a/src/main/java/org/redisson/command/CommandBatchService.java +++ b/src/main/java/org/redisson/command/CommandBatchService.java @@ -16,9 +16,10 @@ package org.redisson.command; import java.util.ArrayList; +import java.util.Collection; import java.util.Collections; import java.util.List; -import java.util.Queue; +import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; @@ -54,11 +55,11 @@ public class CommandBatchService extends CommandReactiveService { public static class Entry { - Queue> commands = PlatformDependent.newMpscQueue(); + Collection> commands = new ConcurrentLinkedQueue>(); volatile boolean readOnlyMode = true; - public Queue> getCommands() { + public Collection> getCommands() { return commands; }