V
- the type of elements held in this collectionpublic interface RBlockingQueueReactive<V> extends RQueueReactive<V>
BlockingQueue
backed by RedisModifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Integer> |
drainTo(Collection<? super V> c) |
org.reactivestreams.Publisher<Integer> |
drainTo(Collection<? super V> c,
int maxElements) |
org.reactivestreams.Publisher<V> |
poll(long timeout,
TimeUnit unit) |
org.reactivestreams.Publisher<V> |
pollFromAny(long timeout,
TimeUnit unit,
String... queueNames)
Retrieves and removes first available head element of any queue,
waiting up to the specified wait time if necessary for an element to become available
in any of defined queues including queue own.
|
org.reactivestreams.Publisher<V> |
pollLastAndOfferFirstTo(String queueName,
long timeout,
TimeUnit unit) |
org.reactivestreams.Publisher<Long> |
put(V e) |
org.reactivestreams.Publisher<V> |
take() |
offer, peek, poll, pollLastAndOfferFirstTo
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
org.reactivestreams.Publisher<V> pollFromAny(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 availableorg.reactivestreams.Publisher<Integer> drainTo(Collection<? super V> c, int maxElements)
org.reactivestreams.Publisher<Integer> drainTo(Collection<? super V> c)
org.reactivestreams.Publisher<V> pollLastAndOfferFirstTo(String queueName, long timeout, TimeUnit unit)
org.reactivestreams.Publisher<V> take()
Copyright © 2014–2016 The Redisson Project. All rights reserved.