V
- the type of elements held in this collectionpublic interface RQueueAsync<V> extends RCollectionAsync<V>
Queue
backed by RedisModifier and Type | Method and Description |
---|---|
RFuture<Boolean> |
offerAsync(V e)
Inserts the specified element into this queue.
|
RFuture<V> |
peekAsync()
Retrieves the head of this queue in async mode.
|
RFuture<V> |
pollAsync()
Retrieves and removes the head of this queue in async mode.
|
RFuture<List<V>> |
pollAsync(int limit)
Retrieves and removes the head elements of this queue.
|
RFuture<V> |
pollLastAndOfferFirstToAsync(String queueName)
Retrieves and removes last available tail element of this queue queue and adds it at the head of
queueName . |
RFuture<List<V>> |
readAllAsync()
Returns all queue elements at once
|
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RFuture<V> peekAsync()
null
RFuture<V> pollAsync()
null
RFuture<Boolean> offerAsync(V e)
e
- the element to addtrue
if successful, or false
ClassCastException
- if the class of the specified element
prevents it from being added to this queueNullPointerException
- if the specified element is nullRFuture<V> pollLastAndOfferFirstToAsync(String queueName)
queueName
.queueName
- - names of destination queuenull
if the
specified waiting time elapses before an element is availableCopyright © 2014–2019 Redisson. All rights reserved.