public interface ReactiveListOperations<K,V>
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Boolean> |
delete(K key)
Removes the given key.
|
reactor.core.publisher.Mono<V> |
index(K key,
long index)
Get element at
index form list at key. |
reactor.core.publisher.Mono<V> |
leftPop(K key)
Removes and returns first element in list stored at
key. |
reactor.core.publisher.Mono<V> |
leftPop(K key,
Duration timeout)
Removes and returns first element from lists stored at
key. |
reactor.core.publisher.Mono<Long> |
leftPush(K key,
V value)
Prepend
value to key. |
reactor.core.publisher.Mono<Long> |
leftPush(K key,
V pivot,
V value)
Prepend
values to key before value. |
reactor.core.publisher.Mono<Long> |
leftPushAll(K key,
Collection<V> values)
Prepend
values to key. |
reactor.core.publisher.Mono<Long> |
leftPushAll(K key,
V... values)
Prepend
values to key. |
reactor.core.publisher.Mono<Long> |
leftPushIfPresent(K key,
V value)
Prepend
values to key only if the list exists. |
reactor.core.publisher.Flux<V> |
range(K key,
long start,
long end)
Get elements between
begin and end from list at key. |
reactor.core.publisher.Mono<Long> |
remove(K key,
long count,
Object value)
Removes the first
count occurrences of value from the list stored at key. |
reactor.core.publisher.Mono<V> |
rightPop(K key)
Removes and returns last element in list stored at
key. |
reactor.core.publisher.Mono<V> |
rightPop(K key,
Duration timeout)
Removes and returns last element from lists stored at
key. |
reactor.core.publisher.Mono<V> |
rightPopAndLeftPush(K sourceKey,
K destinationKey)
Remove the last element from list at
sourceKey, append it to destinationKey and return its value. |
reactor.core.publisher.Mono<V> |
rightPopAndLeftPush(K sourceKey,
K destinationKey,
Duration timeout)
Remove the last element from list at
srcKey, append it to dstKey and return its value. |
reactor.core.publisher.Mono<Long> |
rightPush(K key,
V value)
Append
value to key. |
reactor.core.publisher.Mono<Long> |
rightPush(K key,
V pivot,
V value)
Append
values to key before value. |
reactor.core.publisher.Mono<Long> |
rightPushAll(K key,
Collection<V> values)
Append
values to key. |
reactor.core.publisher.Mono<Long> |
rightPushAll(K key,
V... values)
Append
values to key. |
reactor.core.publisher.Mono<Long> |
rightPushIfPresent(K key,
V value)
Append
values to key only if the list exists. |
reactor.core.publisher.Mono<Boolean> |
set(K key,
long index,
V value)
Set the
value list element at index. |
reactor.core.publisher.Mono<Long> |
size(K key)
Get the size of list stored at
key. |
reactor.core.publisher.Mono<Boolean> |
trim(K key,
long start,
long end)
Trim list at
key to elements between start and end. |
reactor.core.publisher.Flux<V> range(K key, long start, long end)
begin and end from list at key.key - must not be null.start - end - reactor.core.publisher.Mono<Boolean> trim(K key, long start, long end)
key to elements between start and end.key - must not be null.start - end - reactor.core.publisher.Mono<Long> size(K key)
key.key - must not be null.reactor.core.publisher.Mono<Long> leftPush(K key, V value)
value to key.key - must not be null.value - reactor.core.publisher.Mono<Long> leftPushAll(K key, V... values)
values to key.key - must not be null.values - reactor.core.publisher.Mono<Long> leftPushAll(K key, Collection<V> values)
values to key.key - must not be null.values - must not be null.reactor.core.publisher.Mono<Long> leftPushIfPresent(K key, V value)
values to key only if the list exists.key - must not be null.value - reactor.core.publisher.Mono<Long> leftPush(K key, V pivot, V value)
values to key before value.key - must not be null.value - reactor.core.publisher.Mono<Long> rightPush(K key, V value)
value to key.key - must not be null.value - reactor.core.publisher.Mono<Long> rightPushAll(K key, V... values)
values to key.key - must not be null.values - reactor.core.publisher.Mono<Long> rightPushAll(K key, Collection<V> values)
values to key.key - must not be null.values - reactor.core.publisher.Mono<Long> rightPushIfPresent(K key, V value)
values to key only if the list exists.key - must not be null.value - reactor.core.publisher.Mono<Long> rightPush(K key, V pivot, V value)
values to key before value.key - must not be null.value - reactor.core.publisher.Mono<Boolean> set(K key, long index, V value)
value list element at index.key - must not be null.index - value - reactor.core.publisher.Mono<Long> remove(K key, long count, Object value)
count occurrences of value from the list stored at key.key - must not be null.count - value - reactor.core.publisher.Mono<V> index(K key, long index)
index form list at key.key - must not be null.index - reactor.core.publisher.Mono<V> leftPop(K key)
key.key - must not be null.reactor.core.publisher.Mono<V> leftPop(K key, Duration timeout)
key. timeout reached.key - must not be null.timeout - maximal duration to wait until an entry in the list at key is available. Must be either
Duration.ZERO or greater second, must not be null. A timeout of zero can be
used to wait indefinitely. Durations between zero and one second are not supported.reactor.core.publisher.Mono<V> rightPop(K key)
key.key - must not be null.reactor.core.publisher.Mono<V> rightPop(K key, Duration timeout)
key. timeout reached.key - must not be null.timeout - maximal duration to wait until an entry in the list at key is available. Must be either
Duration.ZERO or greater second, must not be null. A timeout of zero can be
used to wait indefinitely. Durations between zero and one second are not supported.reactor.core.publisher.Mono<V> rightPopAndLeftPush(K sourceKey, K destinationKey)
sourceKey, append it to destinationKey and return its value.sourceKey - must not be null.destinationKey - must not be null.reactor.core.publisher.Mono<V> rightPopAndLeftPush(K sourceKey, K destinationKey, Duration timeout)
srcKey, append it to dstKey and return its value.timeout reached.sourceKey - must not be null.destinationKey - must not be null.timeout - maximal duration to wait until an entry in the list at sourceKey is available. Must be
either Duration.ZERO or greater second, must not be null. A timeout of zero
can be used to wait indefinitely. Durations between zero and one second are not supported.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.