public interface RObjectReactive
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Boolean> |
delete()
Delete object in mode
|
Codec |
getCodec() |
String |
getName() |
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database,
long timeout)
Transfer a object from a source Redis instance to a destination Redis instance
in mode
|
org.reactivestreams.Publisher<Boolean> |
move(int database)
Move object to another database in mode
|
org.reactivestreams.Publisher<Void> |
rename(String newName)
Rename current object key to
newName
in mode |
org.reactivestreams.Publisher<Boolean> |
renamenx(String newName)
Rename current object key to
newName
in mode only if new key is not exists |
String getName()
Codec getCodec()
org.reactivestreams.Publisher<Void> migrate(String host, int port, int database, long timeout)
host - - destination hostport - - destination portdatabase - - destination databasetimeout - - maximum idle time in any moment of the communication with the destination instance in millisecondsorg.reactivestreams.Publisher<Boolean> move(int database)
database - - number of Redis databasetrue if key was moved false if notorg.reactivestreams.Publisher<Boolean> delete()
true if object was deleted false if notorg.reactivestreams.Publisher<Void> rename(String newName)
newName
in modenewName - - new name of objectorg.reactivestreams.Publisher<Boolean> renamenx(String newName)
newName
in mode only if new key is not existsnewName - - new name of objecttrue if object has been renamed successfully and false otherwiseorg.reactivestreams.Publisher<Boolean> isExists()
true if object exists and false otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.