V
- the type of elements held in this collectionpublic interface RBoundedBlockingQueueAsync<V> extends RBlockingQueueAsync<V>
BlockingQueue
backed by RedisModifier 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
offerAsync, peekAsync, pollAsync, pollLastAndOfferFirstToAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
RFuture<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
unit
unit
- 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–2016 The Redisson Project. All rights reserved.