V
- the type of elements held in this collectionpublic interface RQueueReactive<V> extends RCollectionReactive<V>
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Boolean> |
offer(V e)
Inserts the specified element into this queue.
|
reactor.core.publisher.Mono<V> |
peek()
Retrieves the head of this queue in async mode.
|
reactor.core.publisher.Mono<V> |
poll()
Retrieves and removes the head of this queue in async mode.
|
reactor.core.publisher.Mono<V> |
pollLastAndOfferFirstTo(String queueName)
Retrieves and removes last available tail element of this queue queue and adds it at the head of
queueName . |
reactor.core.publisher.Mono<List<V>> |
readAll()
Returns all queue elements at once
|
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
reactor.core.publisher.Mono<V> peek()
null
reactor.core.publisher.Mono<V> poll()
null
reactor.core.publisher.Mono<Boolean> offer(V e)
e
- the element to addtrue
if successful, or false
ClassCastException
- if the class of the specified element
prevents it from being added to this queueNullPointerException
- if the specified element is nullreactor.core.publisher.Mono<V> pollLastAndOfferFirstTo(String queueName)
queueName
.queueName
- - names of destination queuenull
if the
specified waiting time elapses before an element is availableCopyright © 2014–2019 The Redisson Project. All rights reserved.