V - the type of elements held in this collectionpublic class RedissonList<V> extends Object implements RList<V>
List| Modifier | Constructor and Description |
|---|---|
protected |
RedissonList(ConnectionManager connectionManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
V element) |
boolean |
add(V e) |
boolean |
addAll(Collection<? extends V> c) |
boolean |
addAll(int index,
Collection<? extends V> coll) |
void |
clear() |
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
delete()
Deletes the object
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
boolean |
expireAt(Date timestamp) |
boolean |
expireAt(long timestamp) |
V |
get(int index) |
String |
getName()
Returns name of object
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<V> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<V> |
listIterator() |
ListIterator<V> |
listIterator(int ind) |
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
protected List<V> |
readAllList() |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
V |
remove(int index) |
boolean |
remove(Object o) |
protected boolean |
remove(Object o,
int count) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
V |
set(int index,
V element) |
int |
size() |
List<V> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearExpire, expire, expireAt, expireAt, remainTimeToLiveprotected RedissonList(ConnectionManager connectionManager, String name)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(V e)
public boolean remove(Object o)
protected boolean remove(Object o, int count)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<V>containsAll in interface List<V>public boolean addAll(Collection<? extends V> c)
public boolean addAll(int index,
Collection<? extends V> coll)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<V>public ListIterator<V> listIterator()
listIterator in interface List<V>public ListIterator<V> listIterator(int ind)
listIterator in interface List<V>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.