Package org.redisson.api
Interface RListReactive<V>
-
- Type Parameters:
V
- the type of elements held in this collection
- All Superinterfaces:
RCollectionReactive<V>
,RExpirableReactive
,RObjectReactive
,RSortableReactive<List<V>>
public interface RListReactive<V> extends RCollectionReactive<V>, RSortableReactive<List<V>>
list functions- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<Void>
add(int index, V element)
org.reactivestreams.Publisher<Integer>
addAfter(V elementToFind, V element)
Addelement
afterelementToFind
org.reactivestreams.Publisher<Boolean>
addAll(int index, Collection<? extends V> coll)
org.reactivestreams.Publisher<Integer>
addBefore(V elementToFind, V element)
Addelement
beforeelementToFind
org.reactivestreams.Publisher<V>
descendingIterator()
org.reactivestreams.Publisher<V>
descendingIterator(int startIndex)
org.reactivestreams.Publisher<Void>
fastRemove(int index)
Remove object by specified indexorg.reactivestreams.Publisher<Void>
fastSet(int index, V element)
org.reactivestreams.Publisher<V>
get(int index)
org.reactivestreams.Publisher<List<V>>
get(int... indexes)
Loads elements by specifiedindexes
org.reactivestreams.Publisher<Integer>
indexOf(Object o)
org.reactivestreams.Publisher<V>
iterator(int startIndex)
org.reactivestreams.Publisher<Integer>
lastIndexOf(Object o)
org.reactivestreams.Publisher<List<V>>
readAll()
Read all elements at onceorg.reactivestreams.Publisher<V>
remove(int index)
org.reactivestreams.Publisher<V>
set(int index, V element)
org.reactivestreams.Publisher<Void>
trim(int fromIndex, int toIndex)
Trim list and remains elements only in specified rangefromIndex
, inclusive, andtoIndex
, inclusive.-
Methods inherited from interface org.redisson.api.RCollectionReactive
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
-
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectReactive
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
-
Methods inherited from interface org.redisson.api.RSortableReactive
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
-
-
-
-
Method Detail
-
get
org.reactivestreams.Publisher<List<V>> get(int... indexes)
Loads elements by specifiedindexes
- Parameters:
indexes
- of elements- Returns:
- elements
-
addAfter
org.reactivestreams.Publisher<Integer> addAfter(V elementToFind, V element)
Addelement
afterelementToFind
- Parameters:
elementToFind
- - object to findelement
- - object to add- Returns:
- new list size
-
addBefore
org.reactivestreams.Publisher<Integer> addBefore(V elementToFind, V element)
Addelement
beforeelementToFind
- Parameters:
elementToFind
- - object to findelement
- - object to add- Returns:
- new list size
-
descendingIterator
org.reactivestreams.Publisher<V> descendingIterator()
-
descendingIterator
org.reactivestreams.Publisher<V> descendingIterator(int startIndex)
-
iterator
org.reactivestreams.Publisher<V> iterator(int startIndex)
-
addAll
org.reactivestreams.Publisher<Boolean> addAll(int index, Collection<? extends V> coll)
-
get
org.reactivestreams.Publisher<V> get(int index)
-
remove
org.reactivestreams.Publisher<V> remove(int index)
-
readAll
org.reactivestreams.Publisher<List<V>> readAll()
Read all elements at once- Returns:
- list of values
-
trim
org.reactivestreams.Publisher<Void> trim(int fromIndex, int toIndex)
Trim list and remains elements only in specified rangefromIndex
, inclusive, andtoIndex
, inclusive.- Parameters:
fromIndex
- - from indextoIndex
- - to index- Returns:
- void
-
fastRemove
org.reactivestreams.Publisher<Void> fastRemove(int index)
Remove object by specified index- Parameters:
index
- - index of object- Returns:
- void
-
-