public interface RObjectAsync
Modifier and Type | Method and Description |
---|---|
RFuture<Void> |
copyAsync(String host,
int port,
int database,
long timeout)
Copy object from source Redis instance to destination Redis instance
in async mode
|
RFuture<Boolean> |
deleteAsync()
Delete object in async mode
|
RFuture<Boolean> |
isExistsAsync()
Check object existence in async mode.
|
RFuture<Void> |
migrateAsync(String host,
int port,
int database,
long timeout)
Transfer object from source Redis instance to destination Redis instance
in async mode
|
RFuture<Boolean> |
moveAsync(int database)
Move object to another database in async mode
|
RFuture<Void> |
renameAsync(String newName)
Rename current object key to
newName
in async mode |
RFuture<Boolean> |
renamenxAsync(String newName)
Rename current object key to
newName
in async mode only if new key is not exists |
RFuture<Boolean> |
touchAsync()
Update the last access time of an object in async mode.
|
RFuture<Boolean> |
unlinkAsync()
Delete the objects.
|
RFuture<Boolean> touchAsync()
true
if object was touched else false
RFuture<Void> migrateAsync(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 millisecondsRFuture<Void> copyAsync(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 millisecondsRFuture<Boolean> moveAsync(int database)
database
- - number of Redis databasetrue
if key was moved false
if notRFuture<Boolean> deleteAsync()
true
if object was deleted false
if notRFuture<Boolean> unlinkAsync()
Requires Redis 4.0+
true
if it was exist and deleted else false
RFuture<Void> renameAsync(String newName)
newName
in async modenewName
- - new name of objectRFuture<Boolean> renamenxAsync(String newName)
newName
in async mode only if new key is not existsnewName
- - new name of objecttrue
if object has been renamed successfully and false
otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.