V - the type of elements held in this collectionpublic interface RBoundedBlockingQueueAsync<V> extends RBlockingQueueAsync<V>
BlockingQueue backed by Redis| Modifier and Type | Method and Description |
|---|---|
RFuture<Boolean> |
offerAsync(V e,
long timeout,
TimeUnit unit)
Inserts the specified element into this queue, waiting up to the
specified wait time if necessary for space to become available.
|
RFuture<Boolean> |
trySetCapacityAsync(int capacity)
Sets queue capacity only if it is not set before.
|
drainToAsync, 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, unlinkAsyncRFuture<Boolean> trySetCapacityAsync(int capacity)
capacity - - queue capacitytrue if capacity set successfully
false if capacity already setRFuture<Boolean> offerAsync(V e, long timeout, TimeUnit unit)
e - the element to addtimeout - how long to wait before giving up, in units of
unitunit - a TimeUnit determining how to interpret the
timeout parametertrue if successful, or false if
the specified waiting time elapses before space is availableClassCastException - if the class of the specified element
prevents it from being added to this queueNullPointerException - if the specified element is nullCopyright © 2014–2018 The Redisson Project. All rights reserved.