V
- the type of elements held in this collectionRCollectionReactive<V>
, RExpirableReactive
, RObjectReactive
, RQueueReactive<V>
RBlockingDequeReactive<V>
RedissonBlockingDequeReactive
, RedissonBlockingQueueReactive
public interface RBlockingQueueReactive<V> extends RQueueReactive<V>
BlockingQueue
backed by RedisModifier and Type | Method | 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<Integer> |
put(V e) |
|
org.reactivestreams.Publisher<V> |
take() |
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
offer, peek, poll, pollLastAndOfferFirstTo
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–2018 The Redisson Project. All rights reserved.