V - the type of elements held in this collectionpublic interface RBlockingQueue<V> extends BlockingQueue<V>, RQueue<V>, RBlockingQueueAsync<V>
BlockingQueue backed by Redis| Modifier and Type | Method and 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, takepollLastAndOfferFirstTo, readAlladdAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayclearExpire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkdrainToAsync, drainToAsync, pollAsync, pollFromAnyAsync, pollLastAndOfferFirstToAsync, putAsync, takeAsync, takeLastAndOfferFirstToAsyncofferAsync, peekAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncV pollFromAny(long timeout, TimeUnit unit, String... queueNames) throws InterruptedException
queueNames - - names of queuetimeout - how long to wait before giving up, in units of
unitunit - 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
InterruptedExceptionV takeLastAndOfferFirstTo(String queueName) throws InterruptedException
InterruptedExceptionCopyright © 2014–2018 The Redisson Project. All rights reserved.