V
- the type of elements held in this collectionpublic interface RBlockingDequeRx<V> extends RDequeRx<V>, RBlockingQueueRx<V>
Modifier and Type | Method and Description |
---|---|
io.reactivex.Maybe<V> |
pollFirst(long timeout,
TimeUnit unit)
Retrieves and removes value at the head of queue.
|
io.reactivex.Maybe<V> |
pollFirstFromAny(long timeout,
TimeUnit unit,
String... queueNames)
Retrieves and removes first available head element of any queue in reactive mode,
waiting up to the specified wait time if necessary for an element to become available
in any of defined queues including queue own.
|
io.reactivex.Maybe<V> |
pollLast(long timeout,
TimeUnit unit)
Retrieves and removes value at the tail of queue.
|
io.reactivex.Maybe<V> |
pollLastFromAny(long timeout,
TimeUnit unit,
String... queueNames)
Retrieves and removes first available tail element of any queue in reactive mode,
waiting up to the specified wait time if necessary for an element to become available
in any of defined queues including queue own.
|
io.reactivex.Completable |
putFirst(V e)
Adds value to the head of queue.
|
io.reactivex.Completable |
putLast(V e)
Adds value to the tail of queue.
|
io.reactivex.Single<V> |
takeFirst()
Retrieves and removes value at the head of queue.
|
io.reactivex.Flowable<V> |
takeFirstElements()
Retrieves and removes continues stream of elements from the head of this queue.
|
io.reactivex.Single<V> |
takeLast()
Retrieves and removes value at the tail of queue.
|
io.reactivex.Flowable<V> |
takeLastElements()
Retrieves and removes continues stream of elements from the tail of this queue.
|
addFirst, addLast, descendingIterator, getLast, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollFirst, pollLast, pollLast, pop, push, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence
drainTo, drainTo, poll, pollFromAny, pollLastAndOfferFirstTo, put, take, takeElements, takeLastAndOfferFirstTo
offer, peek, poll, poll, pollLastAndOfferFirstTo, readAll
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> pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames)
queueNames
- - names of queuetimeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if the
specified waiting time elapses before an element is availableio.reactivex.Maybe<V> pollLastFromAny(long timeout, TimeUnit unit, String... queueNames)
queueNames
- - names of queuetimeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if the
specified waiting time elapses before an element is availableio.reactivex.Completable putFirst(V e)
e
- valueio.reactivex.Completable putLast(V e)
e
- valueio.reactivex.Maybe<V> pollLast(long timeout, TimeUnit unit)
timeout
for an element become available.timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if the
specified waiting time elapses before an element is availableio.reactivex.Single<V> takeLast()
io.reactivex.Maybe<V> pollFirst(long timeout, TimeUnit unit)
timeout
for an element become available.timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if the
specified waiting time elapses before an element is availableio.reactivex.Single<V> takeFirst()
io.reactivex.Flowable<V> takeFirstElements()
io.reactivex.Flowable<V> takeLastElements()
Copyright © 2014–2020 Redisson. All rights reserved.