public interface RObjectAsync
| Modifier and Type | Method and Description |
|---|---|
RFuture<Integer> |
addListenerAsync(ObjectListener listener)
Adds object event listener
|
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<byte[]> |
dumpAsync()
Returns dump of object
|
RFuture<Long> |
getIdleTimeAsync()
Returns number of seconds spent since last write or read operation over this object.
|
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> |
removeListenerAsync(int listenerId)
Removes object event listener
|
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<Void> |
restoreAndReplaceAsync(byte[] state)
Restores and replaces object if it already exists.
|
RFuture<Void> |
restoreAndReplaceAsync(byte[] state,
long timeToLive,
TimeUnit timeUnit)
Restores and replaces object if it already exists and set time to live for it.
|
RFuture<Void> |
restoreAsync(byte[] state)
Restores object using its state returned by
dumpAsync() method. |
RFuture<Void> |
restoreAsync(byte[] state,
long timeToLive,
TimeUnit timeUnit)
Restores object using its state returned by
dumpAsync() method and set time to live for it. |
RFuture<Long> |
sizeInMemoryAsync()
Returns bytes amount used by object in Redis memory.
|
RFuture<Boolean> |
touchAsync()
Update the last access time of an object in async mode.
|
RFuture<Boolean> |
unlinkAsync()
Delete the objects.
|
RFuture<Long> getIdleTimeAsync()
RFuture<Long> sizeInMemoryAsync()
RFuture<Void> restoreAsync(byte[] state)
dumpAsync() method.state - - state of objectRFuture<Void> restoreAsync(byte[] state, long timeToLive, TimeUnit timeUnit)
dumpAsync() method and set time to live for it.state - - state of objecttimeToLive - - time to live of the objecttimeUnit - - time unitRFuture<Void> restoreAndReplaceAsync(byte[] state)
state - - state of the objectRFuture<Void> restoreAndReplaceAsync(byte[] state, long timeToLive, TimeUnit timeUnit)
state - - state of the objecttimeToLive - - time to live of the objecttimeUnit - - time unitRFuture<byte[]> dumpAsync()
RFuture<Boolean> touchAsync()
true if object was touched else falseRFuture<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 falseRFuture<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 otherwiseRFuture<Boolean> isExistsAsync()
true if object exists and false otherwiseRFuture<Integer> addListenerAsync(ObjectListener listener)
listener - - object event listenerExpiredObjectListener,
DeletedObjectListenerCopyright © 2014–2021 Redisson. All rights reserved.