V - valuepublic class RedissonSet<V> extends Object implements RSet<V>
Set| Modifier | Constructor and Description |
|---|---|
protected |
RedissonSet(ConnectionManager connectionManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V e) |
boolean |
addAll(Collection<? extends V> c) |
io.netty.util.concurrent.Future<Boolean> |
addAsync(V e) |
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) |
String |
getName()
Returns name of object
|
boolean |
isEmpty() |
Iterator<V> |
iterator() |
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
boolean |
remove(Object value) |
boolean |
removeAll(Collection<?> c) |
io.netty.util.concurrent.Future<Boolean> |
removeAsync(V e) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearExpire, expire, expireAt, expireAt, remainTimeToLiveprotected RedissonSet(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 io.netty.util.concurrent.Future<Boolean> removeAsync(V e)
removeAsync in interface RSet<V>public boolean remove(Object value)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<V>containsAll in interface Set<V>public boolean addAll(Collection<? extends V> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
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.