V - the type of elements held in this collectionpublic class RedissonPriorityDeque<V> extends RedissonPriorityQueue<V> implements RPriorityDeque<V>
QueueRedissonPriorityQueue.BinarySearchResult<V>codec| Modifier | Constructor and Description |
|---|---|
|
RedissonPriorityDeque(Codec codec,
CommandExecutor commandExecutor,
String name,
RedissonClient redisson) |
protected |
RedissonPriorityDeque(CommandExecutor commandExecutor,
String name,
RedissonClient redisson) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFirst(V e) |
RFuture<Void> |
addFirstAsync(V e) |
void |
addLast(V e) |
RFuture<Void> |
addLastAsync(V e) |
boolean |
clearExpire()
Clear an expire timeout or expire date for object.
|
RFuture<Boolean> |
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.
|
Iterator<V> |
descendingIterator() |
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in async mode.
|
boolean |
expireAt(Date timestamp)
Set an expire date for object.
|
boolean |
expireAt(long timestamp)
Set an expire date for object.
|
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(long timestamp)
Set an expire date for object in async mode.
|
V |
getLast() |
RFuture<V> |
getLastAsync() |
boolean |
offerFirst(V e) |
RFuture<Boolean> |
offerFirstAsync(V e) |
boolean |
offerLast(V e) |
RFuture<Boolean> |
offerLastAsync(V e) |
V |
peekFirst() |
RFuture<V> |
peekFirstAsync() |
V |
peekLast() |
RFuture<V> |
peekLastAsync() |
V |
pollFirst() |
RFuture<V> |
pollFirstAsync() |
V |
pollLast() |
RFuture<V> |
pollLastAsync() |
V |
pop() |
RFuture<V> |
popAsync() |
void |
push(V e) |
RFuture<Void> |
pushAsync(V e) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
RFuture<V> |
removeFirstAsync() |
boolean |
removeFirstOccurrence(Object o) |
RFuture<Boolean> |
removeFirstOccurrenceAsync(Object o) |
V |
removeLast() |
RFuture<V> |
removeLastAsync() |
boolean |
removeLastOccurrence(Object o) |
RFuture<Boolean> |
removeLastOccurrenceAsync(Object o) |
add, addAll, binarySearch, clear, comparator, contains, containsAll, element, getFirst, offer, peek, peekAsync, poll, pollAsync, pollAsync, pollLastAndOfferFirstTo, pollLastAndOfferFirstToAsync, remove, remove, removeAll, removeFirst, retainAll, toString, trySetComparatoradd, addAfter, addAfterAsync, addAll, addAllAsync, addAllAsync, addAsync, addAsync, addBefore, addBeforeAsync, containsAllAsync, containsAsync, equals, fastRemove, fastRemoveAsync, fastSet, fastSetAsync, get, get, getAsync, getAsync, hashCode, indexOf, indexOfAsync, indexOfAsync, isEmpty, iterator, lastIndexOf, lastIndexOfAsync, lastIndexOfAsync, listIterator, listIterator, mapReduce, readAll, readAllAsync, readSort, readSort, readSort, readSort, readSort, readSort, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, remove, remove, remove, removeAllAsync, removeAsync, removeAsync, removeAsync, retainAllAsync, set, setAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, subList, toArray, toArray, trim, trimAsyncawait, copy, copyAsync, delete, deleteAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, suffixName, toSeconds, touch, touchAsync, unlink, unlinkAsyncclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, element, getFirst, iterator, offer, peek, poll, remove, remove, removeFirst, sizecomparator, pollLastAndOfferFirstTo, readAll, trySetComparatoraddAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraycopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkcopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncreplaceAll, sort, spliteratorclearExpire, expire, expireAt, expireAt, remainTimeToLiveclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncprotected RedissonPriorityDeque(CommandExecutor commandExecutor, String name, RedissonClient redisson)
public RedissonPriorityDeque(Codec codec, CommandExecutor commandExecutor, String name, RedissonClient redisson)
public Iterator<V> descendingIterator()
descendingIterator in interface Deque<V>public boolean offerFirst(V e)
offerFirst in interface Deque<V>public boolean removeFirstOccurrence(Object o)
removeFirstOccurrence in interface Deque<V>public V removeLast()
removeLast in interface Deque<V>public boolean removeLastOccurrence(Object o)
removeLastOccurrence in interface Deque<V>public boolean expire(long timeToLive,
TimeUnit timeUnit)
RExpirableexpire in interface RExpirabletimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
RExpirableAsyncexpireAsync in interface RExpirableAsynctimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic boolean expireAt(long timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire date in seconds (Unix timestamp)true if the timeout was set and false if notpublic boolean expireAt(Date timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire datetrue if the timeout was set and false if notpublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsyncclearExpireAsync in interface RExpirableAsynctrue if the timeout was cleared and false if notpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirablepublic RFuture<Long> remainTimeToLiveAsync()
RExpirableAsyncremainTimeToLiveAsync in interface RExpirableAsyncCopyright © 2014–2018 The Redisson Project. All rights reserved.