V
- the type of elements held in this collectionpublic interface RQueue<V> extends Queue<V>, RExpirable, RQueueAsync<V>
Queue
backed by RedisModifier and Type | Method and Description |
---|---|
int |
addListener(ObjectListener listener)
Adds object event listener
|
List<V> |
poll(int limit)
Retrieves and removes the head elements of this queue.
|
V |
pollLastAndOfferFirstTo(String queueName)
Retrieves and removes last available tail element of this queue queue and adds it at the head of
queueName . |
List<V> |
readAll()
Returns all queue elements at once
|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
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
V pollLastAndOfferFirstTo(String queueName)
queueName
.queueName
- - names of destination queuenull
if the
specified waiting time elapses before an element is availableList<V> poll(int limit)
limit
param.int addListener(ObjectListener listener)
addListener
in interface RObject
listener
- - object event listenerExpiredObjectListener
,
DeletedObjectListener
,
ListAddListener
,
ListInsertListener
,
ListSetListener
,
ListRemoveListener
,
ListTrimListener
Copyright © 2014–2021 Redisson. All rights reserved.