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() |
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, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
protected 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 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()
Copyright © 2014. All rights reserved.