Skip to content

Commit

Permalink
LocalCachedMapInvalidate object can't be serialized by Kryo codec. #918
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita committed Jun 13, 2017
1 parent e56e091 commit 558f36b
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -30,7 +30,6 @@
import java.util.Map; import java.util.Map;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
import java.util.Set; import java.util.Set;
import java.util.UUID;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;


import org.redisson.api.LocalCachedMapOptions; import org.redisson.api.LocalCachedMapOptions;
Expand Down Expand Up @@ -87,22 +86,22 @@ public static class LocalCachedMapClear implements Serializable {
public static class LocalCachedMapInvalidate implements Serializable { public static class LocalCachedMapInvalidate implements Serializable {


private byte[] excludedId; private byte[] excludedId;
private List<byte[]> keyHashes; private byte[][] keyHashes;


public LocalCachedMapInvalidate() { public LocalCachedMapInvalidate() {
} }


public LocalCachedMapInvalidate(byte[] excludedId, byte[]... keyHash) { public LocalCachedMapInvalidate(byte[] excludedId, byte[]... keyHashes) {
super(); super();
this.keyHashes = Arrays.asList(keyHash); this.keyHashes = keyHashes;
this.excludedId = excludedId; this.excludedId = excludedId;
} }


public byte[] getExcludedId() { public byte[] getExcludedId() {
return excludedId; return excludedId;
} }


public Collection<byte[]> getKeyHashes() { public byte[][] getKeyHashes() {
return keyHashes; return keyHashes;
} }


Expand Down

0 comments on commit 558f36b

Please sign in to comment.