V
- the type of elements held in this collectionpublic interface RBoundedBlockingQueueAsync<V> extends RBlockingQueueAsync<V>
BlockingQueue
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, takeLastAndOfferFirstToAsync
addListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
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–2021 Redisson. All rights reserved.