Package org.redisson.api
Interface RListAsync<V>
-
- Type Parameters:
V
- the type of elements held in this collection
- All Superinterfaces:
RandomAccess
,RCollectionAsync<V>
,RExpirableAsync
,RObjectAsync
,RSortableAsync<List<V>>
- All Known Subinterfaces:
RList<V>
- All Known Implementing Classes:
RedissonBlockingDeque
,RedissonBlockingQueue
,RedissonBoundedBlockingQueue
,RedissonDeque
,RedissonList
,RedissonListMultimapValues
,RedissonPriorityBlockingDeque
,RedissonPriorityBlockingQueue
,RedissonPriorityDeque
,RedissonPriorityQueue
,RedissonQueue
,RedissonSubList
public interface RListAsync<V> extends RCollectionAsync<V>, RSortableAsync<List<V>>, RandomAccess
Async list functions- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Integer>
addAfterAsync(V elementToFind, V element)
Addelement
afterelementToFind
RFuture<Boolean>
addAllAsync(int index, Collection<? extends V> coll)
RFuture<Boolean>
addAsync(int index, V element)
RFuture<Integer>
addBeforeAsync(V elementToFind, V element)
Addelement
beforeelementToFind
RFuture<Void>
fastRemoveAsync(int index)
RFuture<Void>
fastSetAsync(int index, V element)
Setelement
atindex
.RFuture<V>
getAsync(int index)
RFuture<List<V>>
getAsync(int... indexes)
Loads elements by specifiedindexes
RFuture<Integer>
indexOfAsync(Object o)
RFuture<Integer>
lastIndexOfAsync(Object o)
RFuture<List<V>>
readAllAsync()
Read all elements at onceRFuture<V>
removeAsync(int index)
RFuture<Boolean>
removeAsync(Object o, int count)
RFuture<V>
setAsync(int index, V element)
RFuture<Void>
trimAsync(int fromIndex, int toIndex)
Trim list and remains elements only in specified rangefromIndex
, inclusive, andtoIndex
, inclusive.-
Methods inherited from interface org.redisson.api.RCollectionAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
-
Methods inherited from interface org.redisson.api.RSortableAsync
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
-
-
-
-
Method Detail
-
getAsync
RFuture<List<V>> getAsync(int... indexes)
Loads elements by specifiedindexes
- Parameters:
indexes
- of elements- Returns:
- elements
-
addAfterAsync
RFuture<Integer> addAfterAsync(V elementToFind, V element)
Addelement
afterelementToFind
- Parameters:
elementToFind
- - object to findelement
- - object to add- Returns:
- new list size
-
addBeforeAsync
RFuture<Integer> addBeforeAsync(V elementToFind, V element)
Addelement
beforeelementToFind
- Parameters:
elementToFind
- - object to findelement
- - object to add- Returns:
- new list size
-
addAllAsync
RFuture<Boolean> addAllAsync(int index, Collection<? extends V> coll)
-
fastSetAsync
RFuture<Void> fastSetAsync(int index, V element)
- Parameters:
index
- - index of objectelement
- - object- Returns:
- void
-
trimAsync
RFuture<Void> trimAsync(int fromIndex, int toIndex)
Trim list and remains elements only in specified rangefromIndex
, inclusive, andtoIndex
, inclusive.- Parameters:
fromIndex
- - from indextoIndex
- - to index- Returns:
- void
-
-