V - the type of elements held in this collectionpublic interface RQueue<V> extends Queue<V>, RExpirable, RQueueAsync<V>
Queue backed by Redis| Modifier 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, toArrayclearExpire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkaddListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncV 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 RObjectlistener - - object event listenerExpiredObjectListener,
DeletedObjectListener,
ListAddListener,
ListInsertListener,
ListSetListener,
ListRemoveListener,
ListTrimListenerCopyright © 2014–2020 Redisson. All rights reserved.