V
- the type of elements held in this collectionpublic interface RBlockingQueue<V> extends BlockingQueue<V>, RQueue<V>, RBlockingQueueAsync<V>
BlockingQueue
backed by RedisModifier and Type | Method and Description |
---|---|
V |
pollFromAny(long timeout,
TimeUnit unit,
String... queueNames)
Retrieves and removes the head of this queue in async mode, waiting up to the
specified wait time if necessary for an element to become available
in any of defined queues including queue own.
|
V |
pollLastAndOfferFirstTo(RBlockingQueue<V> queue,
long timeout,
TimeUnit unit) |
V |
pollLastAndOfferFirstTo(String queueName,
long timeout,
TimeUnit unit) |
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
pollLastAndOfferFirstTo, pollLastAndOfferFirstTo
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getName, migrate, move, rename, renamenx
drainToAsync, drainToAsync, pollAsync, pollFromAnyAsync, pollLastAndOfferFirstToAsync, putAsync, takeAsync
offerAsync, peekAsync, pollAsync, pollLastAndOfferFirstToAsync, pollLastAndOfferFirstToAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
V pollFromAny(long timeout, TimeUnit unit, String... queueNames) throws InterruptedException
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 availableInterruptedException
- if interrupted while waitingV pollLastAndOfferFirstTo(String queueName, long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
V pollLastAndOfferFirstTo(RBlockingQueue<V> queue, long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2014–2015. All rights reserved.