V
- the type of elements held in this collectionpublic class RedissonDeque<V> extends RedissonQueue<V> implements RDeque<V>
Queue
Modifier | Constructor and Description |
---|---|
protected |
RedissonDeque(ConnectionManager connectionManager,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addFirst(V e) |
void |
addLast(V e) |
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
boolean |
delete()
Deletes the object
|
io.netty.util.concurrent.Future<Boolean> |
deleteAsync() |
Iterator<V> |
descendingIterator() |
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
boolean |
expireAt(Date timestamp) |
boolean |
expireAt(long timestamp) |
V |
getLast() |
String |
getName()
Returns name of object
|
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
boolean |
offerFirst(V e) |
boolean |
offerLast(V e) |
V |
peekFirst() |
V |
peekLast() |
V |
pollFirst() |
V |
pollLast() |
V |
pop() |
void |
push(V e) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
boolean |
removeFirstOccurrence(Object o) |
V |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
boolean |
rename(String newName)
Rename current object key to
newName |
io.netty.util.concurrent.Future<Boolean> |
renameAsync(String newName)
Rename current object key to
newName
in async mode |
boolean |
renamenx(String newName)
Rename current object key to
newName
only if new key is not exists |
io.netty.util.concurrent.Future<Boolean> |
renamenxAsync(String newName)
Rename current object key to
newName
in async mode only if new key is not exists |
element, getFirst, offer, peek, poll, pollLastAndOfferFirstTo, pollLastAndOfferFirstTo, remove, removeFirst
add, add, addAll, addAll, addAllAsync, addAsync, clear, contains, containsAll, get, getAsync, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, readAllList, remove, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, contains, element, getFirst, iterator, offer, peek, poll, remove, remove, removeFirst, size
pollLastAndOfferFirstTo, pollLastAndOfferFirstTo
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, deleteAsync, getName, rename, renameAsync, renamenx, renamenxAsync
protected RedissonDeque(ConnectionManager connectionManager, String name)
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)
expire
in interface RExpirable
public boolean expireAt(long timestamp)
expireAt
in interface RExpirable
public boolean expireAt(Date timestamp)
expireAt
in interface RExpirable
public boolean clearExpire()
RExpirable
clearExpire
in interface RExpirable
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutpublic long remainTimeToLive()
RExpirable
remainTimeToLive
in interface RExpirable
protected <V> io.netty.util.concurrent.Promise<V> newPromise()
public boolean rename(String newName)
RObject
newName
public io.netty.util.concurrent.Future<Boolean> renameAsync(String newName)
RObject
newName
in async moderenameAsync
in interface RObject
public boolean renamenx(String newName)
RObject
newName
only if new key is not existspublic io.netty.util.concurrent.Future<Boolean> renamenxAsync(String newName)
RObject
newName
in async mode only if new key is not existsrenamenxAsync
in interface RObject
public boolean delete()
RObject
public io.netty.util.concurrent.Future<Boolean> deleteAsync()
deleteAsync
in interface RObject
Copyright © 2014–2015. All rights reserved.