V
- the type of elements held in this collectionBlockingQueue<V>
, Collection<V>
, Iterable<V>
, Queue<V>
, RBlockingQueueAsync<V>
, RCollectionAsync<V>
, RExpirable
, RExpirableAsync
, RObject
, RObjectAsync
, RQueue<V>
, RQueueAsync<V>
RBlockingDeque<V>
, RBoundedBlockingQueue<V>
, RPriorityBlockingDeque<V>
, RPriorityBlockingQueue<V>
RedissonBlockingDeque
, RedissonBlockingQueue
, RedissonBoundedBlockingQueue
, RedissonPriorityBlockingDeque
, RedissonPriorityBlockingQueue
public interface RBlockingQueue<V> extends BlockingQueue<V>, RQueue<V>, RBlockingQueueAsync<V>
BlockingQueue
backed by RedisModifier and Type | Method | Description |
---|---|---|
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.
|
V |
pollLastAndOfferFirstTo(String queueName,
long timeout,
TimeUnit unit) |
|
V |
takeLastAndOfferFirstTo(String queueName) |
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
drainToAsync, drainToAsync, pollAsync, pollFromAnyAsync, pollLastAndOfferFirstToAsync, putAsync, takeAsync, takeLastAndOfferFirstToAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpire, expire, expireAt, expireAt, remainTimeToLive
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
pollLastAndOfferFirstTo, readAll
offerAsync, peekAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsync
V pollFromAny(long timeout, TimeUnit unit, String... queueNames) throws InterruptedException
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 availableInterruptedException
- if interrupted while waitingV pollLastAndOfferFirstTo(String queueName, long timeout, TimeUnit unit) throws InterruptedException
InterruptedException
V takeLastAndOfferFirstTo(String queueName) throws InterruptedException
InterruptedException
Copyright © 2014–2018 The Redisson Project. All rights reserved.