V
- public class RedissonSortedSet<V> extends Object implements RSortedSet<V>
Modifier and Type | Class and Description |
---|---|
static class |
RedissonSortedSet.BinarySearchResult<V> |
Modifier | Constructor and Description |
---|---|
|
RedissonSortedSet(Codec codec,
CommandExecutor commandExecutor,
String name) |
protected |
RedissonSortedSet(CommandExecutor commandExecutor,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(V value) |
boolean |
addAll(Collection<? extends V> c) |
io.netty.util.concurrent.Future<Boolean> |
addAsync(V value) |
RedissonSortedSet.BinarySearchResult<V> |
binarySearch(V value,
Codec codec,
RedisConnection connection) |
static double |
calcIncrement(double value) |
void |
clear() |
Comparator<? super V> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
delete()
Deletes the object
|
io.netty.util.concurrent.Future<Boolean> |
deleteAsync()
Delete object in async mode
|
V |
first() |
protected <V> V |
get(io.netty.util.concurrent.Future<V> future) |
String |
getName()
Returns name of object
|
SortedSet<V> |
headSet(V toElement) |
boolean |
isEmpty() |
boolean |
isExists()
Check object existence
|
io.netty.util.concurrent.Future<Boolean> |
isExistsAsync()
Check object existence in async mode.
|
Iterator<V> |
iterator() |
V |
last() |
void |
migrate(String host,
int port,
int database)
Transfer an object from source Redis instance to destination Redis instance
|
io.netty.util.concurrent.Future<Void> |
migrateAsync(String host,
int port,
int database)
Transfer an object from source Redis instance to destination Redis instance
in async mode
|
boolean |
move(int database)
Move object to another database
|
io.netty.util.concurrent.Future<Boolean> |
moveAsync(int database)
Move object to another database in async mode
|
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
protected <V> io.netty.util.concurrent.Future<V> |
newSucceededFuture(V result) |
boolean |
remove(Object value) |
boolean |
removeAll(Collection<?> c) |
io.netty.util.concurrent.Future<Boolean> |
removeAsync(V value) |
void |
rename(String newName)
Rename current object key to
newName |
io.netty.util.concurrent.Future<Void> |
renameAsync(String newName)
Rename current object key to
newName
in async mode |
boolean |
renamenx(String newName)
Rename current object key to
newName
only if new key is not exists |
io.netty.util.concurrent.Future<Boolean> |
renamenxAsync(String newName)
Rename current object key to
newName
in async mode only if new key is not exists |
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<V> |
subSet(V fromElement,
V toElement) |
SortedSet<V> |
tailSet(V fromElement) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
boolean |
trySetComparator(Comparator<? super V> comparator)
Sets new comparator only if current set is empty
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
delete, getName, isExists, migrate, move, rename, renamenx
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
protected RedissonSortedSet(CommandExecutor commandExecutor, String name)
public RedissonSortedSet(Codec codec, CommandExecutor commandExecutor, 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 value)
public io.netty.util.concurrent.Future<Boolean> addAsync(V value)
addAsync
in interface RSortedSet<V>
public static double calcIncrement(double value)
public io.netty.util.concurrent.Future<Boolean> removeAsync(V value)
removeAsync
in interface RSortedSet<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 Comparator<? super V> comparator()
comparator
in interface SortedSet<V>
public boolean trySetComparator(Comparator<? super V> comparator)
RSortedSet
trySetComparator
in interface RSortedSet<V>
true
if new comparator setted
false
otherwisepublic RedissonSortedSet.BinarySearchResult<V> binarySearch(V value, Codec codec, RedisConnection connection)
protected <V> V get(io.netty.util.concurrent.Future<V> future)
protected <V> io.netty.util.concurrent.Promise<V> newPromise()
protected <V> io.netty.util.concurrent.Future<V> newSucceededFuture(V result)
public void rename(String newName)
RObject
newName
public io.netty.util.concurrent.Future<Void> renameAsync(String newName)
RObjectAsync
newName
in async moderenameAsync
in interface RObjectAsync
public void migrate(String host, int port, int database)
RObject
public io.netty.util.concurrent.Future<Void> migrateAsync(String host, int port, int database)
RObjectAsync
migrateAsync
in interface RObjectAsync
host
- - destination hostport
- - destination portdatabase
- - destination databasepublic boolean move(int database)
RObject
public io.netty.util.concurrent.Future<Boolean> moveAsync(int database)
RObjectAsync
moveAsync
in interface RObjectAsync
true
if key was moved false
if notpublic boolean renamenx(String newName)
RObject
newName
only if new key is not existspublic io.netty.util.concurrent.Future<Boolean> renamenxAsync(String newName)
RObjectAsync
newName
in async mode only if new key is not existsrenamenxAsync
in interface RObjectAsync
public boolean delete()
RObject
public io.netty.util.concurrent.Future<Boolean> deleteAsync()
RObjectAsync
deleteAsync
in interface RObjectAsync
true
if object was deleted false
if notpublic boolean isExists()
RObject
public io.netty.util.concurrent.Future<Boolean> isExistsAsync()
RObjectAsync
isExistsAsync
in interface RObjectAsync
true
if object exists and false
otherwiseCopyright © 2014–2016. All rights reserved.