V
- the type of elements held in this collectionpublic class RedissonListReactive<V> extends Object implements RListReactive<V>
List
Constructor and Description |
---|
RedissonListReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
RedissonListReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name,
RListAsync<V> instance) |
RedissonListReactive(CommandReactiveExecutor commandExecutor,
String name) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Integer> |
add(long index,
V element) |
org.reactivestreams.Publisher<Integer> |
add(V e) |
org.reactivestreams.Publisher<Integer> |
addAfter(V elementToFind,
V element)
Add
element after elementToFind |
org.reactivestreams.Publisher<Integer> |
addAll(Collection<? extends V> c) |
org.reactivestreams.Publisher<Integer> |
addAll(long index,
Collection<? extends V> coll) |
org.reactivestreams.Publisher<Integer> |
addAll(org.reactivestreams.Publisher<? extends V> c) |
org.reactivestreams.Publisher<Integer> |
addBefore(V elementToFind,
V element)
Add
element before elementToFind |
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
contains(Object o) |
org.reactivestreams.Publisher<Boolean> |
containsAll(Collection<?> c) |
org.reactivestreams.Publisher<Boolean> |
delete()
Delete object in mode
|
org.reactivestreams.Publisher<V> |
descendingIterator() |
org.reactivestreams.Publisher<V> |
descendingIterator(int startIndex) |
protected void |
encode(Collection<Object> params,
Collection<?> values) |
protected io.netty.buffer.ByteBuf |
encode(Object value) |
protected io.netty.buffer.ByteBuf |
encodeMapKey(Object value) |
protected io.netty.buffer.ByteBuf |
encodeMapValue(Object value) |
boolean |
equals(Object o) |
org.reactivestreams.Publisher<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(Date timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Void> |
fastRemove(long index)
Remove object by specified index
|
org.reactivestreams.Publisher<Void> |
fastSet(long index,
V element) |
org.reactivestreams.Publisher<List<V>> |
get(int... indexes)
Loads elements by specified
indexes |
org.reactivestreams.Publisher<V> |
get(long index) |
Codec |
getCodec() |
String |
getName() |
int |
hashCode() |
org.reactivestreams.Publisher<Long> |
indexOf(Object o) |
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
org.reactivestreams.Publisher<V> |
iterator() |
org.reactivestreams.Publisher<V> |
iterator(int startIndex) |
org.reactivestreams.Publisher<Long> |
lastIndexOf(Object o) |
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database,
long timeout)
Transfer a object from a source Redis instance to a destination Redis instance
in mode
|
org.reactivestreams.Publisher<Boolean> |
move(int database)
Move object to another database in mode
|
protected <V> reactor.core.publisher.Mono<V> |
newSucceeded(V result) |
<R> org.reactivestreams.Publisher<R> |
reactive(Supplier<RFuture<R>> supplier) |
org.reactivestreams.Publisher<List<V>> |
readAll()
Read all elements at once
|
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<V> |
remove(long index) |
org.reactivestreams.Publisher<Boolean> |
remove(Object o) |
protected org.reactivestreams.Publisher<Boolean> |
remove(Object o,
int count) |
org.reactivestreams.Publisher<Boolean> |
removeAll(Collection<?> c) |
org.reactivestreams.Publisher<Void> |
rename(String newName)
Rename current object key to
newName
in mode |
org.reactivestreams.Publisher<Boolean> |
renamenx(String newName)
Rename current object key to
newName
in mode only if new key is not exists |
org.reactivestreams.Publisher<Boolean> |
retainAll(Collection<?> c) |
org.reactivestreams.Publisher<V> |
set(long index,
V element) |
org.reactivestreams.Publisher<Integer> |
size() |
org.reactivestreams.Publisher<Void> |
trim(int fromIndex,
int toIndex)
Trim list and remains elements only in specified range
fromIndex, inclusive, and toIndex, inclusive.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonListReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonListReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public RedissonListReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name, RListAsync<V> instance)
public org.reactivestreams.Publisher<Integer> size()
size
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<V> descendingIterator()
descendingIterator
in interface RListReactive<V>
public org.reactivestreams.Publisher<V> iterator()
iterator
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<V> descendingIterator(int startIndex)
descendingIterator
in interface RListReactive<V>
public org.reactivestreams.Publisher<V> iterator(int startIndex)
iterator
in interface RListReactive<V>
public org.reactivestreams.Publisher<Void> trim(int fromIndex, int toIndex)
RListReactive
trim
in interface RListReactive<V>
fromIndex
- - from indextoIndex
- - to indexpublic org.reactivestreams.Publisher<Void> fastRemove(long index)
RListReactive
fastRemove
in interface RListReactive<V>
index
- - index of objectpublic org.reactivestreams.Publisher<List<V>> readAll()
RListReactive
readAll
in interface RListReactive<V>
public org.reactivestreams.Publisher<Integer> addBefore(V elementToFind, V element)
RListReactive
element
before elementToFind
addBefore
in interface RListReactive<V>
elementToFind
- - object to findelement
- - object to addpublic org.reactivestreams.Publisher<Integer> addAfter(V elementToFind, V element)
RListReactive
element
after elementToFind
addAfter
in interface RListReactive<V>
elementToFind
- - object to findelement
- - object to addpublic org.reactivestreams.Publisher<List<V>> get(int... indexes)
RListReactive
indexes
get
in interface RListReactive<V>
indexes
- of elementspublic org.reactivestreams.Publisher<Integer> add(V e)
add
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> remove(Object o)
remove
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> containsAll(Collection<?> c)
containsAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Integer> addAll(org.reactivestreams.Publisher<? extends V> c)
addAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Integer> addAll(Collection<? extends V> c)
addAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Integer> addAll(long index, Collection<? extends V> coll)
addAll
in interface RListReactive<V>
public org.reactivestreams.Publisher<Boolean> removeAll(Collection<?> c)
removeAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> retainAll(Collection<?> c)
retainAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<V> get(long index)
get
in interface RListReactive<V>
public org.reactivestreams.Publisher<V> set(long index, V element)
set
in interface RListReactive<V>
public org.reactivestreams.Publisher<Void> fastSet(long index, V element)
fastSet
in interface RListReactive<V>
public org.reactivestreams.Publisher<Integer> add(long index, V element)
add
in interface RListReactive<V>
public org.reactivestreams.Publisher<V> remove(long index)
remove
in interface RListReactive<V>
public org.reactivestreams.Publisher<Boolean> contains(Object o)
contains
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Long> indexOf(Object o)
indexOf
in interface RListReactive<V>
public org.reactivestreams.Publisher<Long> lastIndexOf(Object o)
lastIndexOf
in interface RListReactive<V>
public org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
RExpirableReactive
expire
in interface RExpirableReactive
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(long timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> clearExpire()
RExpirableReactive
clearExpire
in interface RExpirableReactive
true
if the timeout was cleared and false
if notpublic org.reactivestreams.Publisher<Long> remainTimeToLive()
RExpirableReactive
remainTimeToLive
in interface RExpirableReactive
protected <V> reactor.core.publisher.Mono<V> newSucceeded(V result)
public String getName()
getName
in interface RObjectReactive
public Codec getCodec()
getCodec
in interface RObjectReactive
protected void encode(Collection<Object> params, Collection<?> values)
protected io.netty.buffer.ByteBuf encode(Object value)
protected io.netty.buffer.ByteBuf encodeMapKey(Object value)
protected io.netty.buffer.ByteBuf encodeMapValue(Object value)
public org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactive
newName
in moderename
in interface RObjectReactive
newName
- - new name of objectpublic org.reactivestreams.Publisher<Void> migrate(String host, int port, int database, long timeout)
RObjectReactive
migrate
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasetimeout
- - maximum idle time in any moment of the communication with the destination instance in millisecondspublic org.reactivestreams.Publisher<Boolean> move(int database)
RObjectReactive
move
in interface RObjectReactive
database
- - number of Redis databasetrue
if key was moved false
if notpublic org.reactivestreams.Publisher<Boolean> renamenx(String newName)
RObjectReactive
newName
in mode only if new key is not existsrenamenx
in interface RObjectReactive
newName
- - new name of objecttrue
if object has been renamed successfully and false
otherwisepublic org.reactivestreams.Publisher<Boolean> delete()
RObjectReactive
delete
in interface RObjectReactive
true
if object was deleted false
if notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactive
isExists
in interface RObjectReactive
true
if object exists and false
otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.