diff --git a/src/main/java/org/redisson/core/RList.java b/src/main/java/org/redisson/core/RList.java index 702f98dca..74ef57085 100644 --- a/src/main/java/org/redisson/core/RList.java +++ b/src/main/java/org/redisson/core/RList.java @@ -16,6 +16,7 @@ package org.redisson.core; import java.util.List; +import java.util.RandomAccess; /** * Distributed and concurrent implementation of {@link java.util.List} @@ -24,7 +25,7 @@ import java.util.List; * * @param the type of elements held in this collection */ -public interface RList extends List, RExpirable, RListAsync { +public interface RList extends List, RExpirable, RListAsync, RandomAccess { void fastSet(int index, V element); diff --git a/src/main/java/org/redisson/core/RListAsync.java b/src/main/java/org/redisson/core/RListAsync.java index f9d7da761..6ce2109a2 100644 --- a/src/main/java/org/redisson/core/RListAsync.java +++ b/src/main/java/org/redisson/core/RListAsync.java @@ -16,6 +16,7 @@ package org.redisson.core; import java.util.Collection; +import java.util.RandomAccess; import io.netty.util.concurrent.Future; @@ -26,7 +27,7 @@ import io.netty.util.concurrent.Future; * * @param the type of elements held in this collection */ -public interface RListAsync extends RCollectionAsync { +public interface RListAsync extends RCollectionAsync, RandomAccess { Future addAllAsync(int index, Collection coll);