Skip to content

Commit

Permalink
java.lang.UnsupportedOperationException during command batch usage wi…
Browse files Browse the repository at this point in the history
…th netty 4.0.38 and higher #557
  • Loading branch information
Nikita committed Jul 26, 2016
1 parent 7a4da39 commit 0c36f27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/redisson/command/CommandBatchService.java
Expand Up @@ -16,9 +16,10 @@
package org.redisson.command; package org.redisson.command;


import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
Expand Down Expand Up @@ -54,11 +55,11 @@ public class CommandBatchService extends CommandReactiveService {


public static class Entry { public static class Entry {


Queue<BatchCommandData<?, ?>> commands = PlatformDependent.newMpscQueue(); Collection<BatchCommandData<?, ?>> commands = new ConcurrentLinkedQueue<BatchCommandData<?,?>>();


volatile boolean readOnlyMode = true; volatile boolean readOnlyMode = true;


public Queue<BatchCommandData<?, ?>> getCommands() { public Collection<BatchCommandData<?, ?>> getCommands() {
return commands; return commands;
} }


Expand Down

0 comments on commit 0c36f27

Please sign in to comment.