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<List<V>> |
poll(int limit)
Retrieves and removes the head elements of this queue.
|
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, sizeclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkreactor.core.publisher.Mono<V> peek()
nullreactor.core.publisher.Mono<V> poll()
nullreactor.core.publisher.Mono<List<V>> poll(int limit)
limit param.reactor.core.publisher.Mono<Boolean> offer(V e)
e - the element to addtrue if successful, or falseClassCastException - 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–2020 Redisson. All rights reserved.