V - the type of elements held in this collectionpublic class RedissonQueue<V> extends RedissonList<V> implements RQueue<V>
Queue| Modifier | Constructor and Description |
|---|---|
protected |
RedissonQueue(ConnectionManager connectionManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
void |
delete()
Deletes the object
|
V |
element() |
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
boolean |
expireAt(Date timestamp) |
boolean |
expireAt(long timestamp) |
V |
getFirst() |
String |
getName()
Returns name of object
|
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
boolean |
offer(V e) |
V |
peek() |
V |
poll() |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
V |
remove() |
V |
removeFirst() |
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, readAllList, remove, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayclearExpire, expire, expireAt, expireAt, remainTimeToLiveprotected RedissonQueue(ConnectionManager connectionManager, String name)
public V getFirst()
public V removeFirst()
public boolean expire(long timeToLive,
TimeUnit timeUnit)
expire in interface RExpirablepublic boolean expireAt(long timestamp)
expireAt in interface RExpirablepublic boolean expireAt(Date timestamp)
expireAt in interface RExpirablepublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirableprotected <V> io.netty.util.concurrent.Promise<V> newPromise()
Copyright © 2014–2015. All rights reserved.