V
- the type of elements held in this collectionpublic class RedissonDeque<V> extends RedissonQueue<V> implements RDeque<V>
Queue
Modifier and Type | Method and Description |
---|---|
void |
addFirst(V e) |
void |
addLast(V e) |
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
void |
close() |
void |
delete()
Deletes the object
|
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) |
element, getFirst, offer, peek, poll, remove, removeFirst
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, 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
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
clearExpire, expire, expireAt, expireAt, remainTimeToLive
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 void delete()
RObject
public void close()
Copyright © 2014. All rights reserved.