V
- the type of elements held in this collectionpublic interface RQueueRx<V> extends RCollectionRx<V>
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<Boolean> |
offer(V e)
Inserts the specified element into this queue.
|
io.reactivex.Maybe<V> |
peek()
Retrieves the head of this queue in async mode.
|
io.reactivex.Maybe<V> |
poll()
Retrieves and removes the head of this queue in async mode.
|
io.reactivex.Maybe<V> |
pollLastAndOfferFirstTo(String queueName)
Retrieves and removes last available tail element of this queue queue and adds it at the head of
queueName . |
io.reactivex.Single<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
io.reactivex.Maybe<V> peek()
null
io.reactivex.Maybe<V> poll()
null
io.reactivex.Single<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 nullio.reactivex.Maybe<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.