RAtomicDouble
, RAtomicDoubleAsync
, RAtomicLong
, RAtomicLongAsync
, RBinaryStream
, RBitSet
, RBitSetAsync
, RBlockingDeque<V>
, RBlockingDequeAsync<V>
, RBlockingQueue<V>
, RBlockingQueueAsync<V>
, RBloomFilter<T>
, RBoundedBlockingQueue<V>
, RBoundedBlockingQueueAsync<V>
, RBucket<V>
, RBucketAsync<V>
, RCollectionAsync<V>
, RCountDownLatch
, RCountDownLatchAsync
, RDelayedQueue<V>
, RDeque<V>
, RDequeAsync<V>
, RDoubleAdder
, RExpirable
, RExpirableAsync
, RGeo<V>
, RGeoAsync<V>
, RHyperLogLog<V>
, RHyperLogLogAsync<V>
, RLexSortedSet
, RLexSortedSetAsync
, RList<V>
, RListAsync<V>
, RListMultimap<K,V>
, RListMultimapCache<K,V>
, RLocalCachedMap<K,V>
, RLock
, RLockAsync
, RLongAdder
, RMap<K,V>
, RMapAsync<K,V>
, RMapCache<K,V>
, RMapCacheAsync<K,V>
, RMultimap<K,V>
, RMultimapAsync<K,V>
, RMultimapCache<K,V>
, RMultimapCacheAsync<K,V>
, RObject
, RPermitExpirableSemaphore
, RPermitExpirableSemaphoreAsync
, RPriorityBlockingDeque<V>
, RPriorityBlockingQueue<V>
, RPriorityDeque<V>
, RPriorityQueue<V>
, RQueue<V>
, RQueueAsync<V>
, RRateLimiter
, RRateLimiterAsync
, RReadWriteLock
, RScoredSortedSet<V>
, RScoredSortedSetAsync<V>
, RSemaphore
, RSemaphoreAsync
, RSet<V>
, RSetAsync<V>
, RSetCache<V>
, RSetCacheAsync<V>
, RSetMultimap<K,V>
, RSetMultimapCache<K,V>
, RSortedSet<V>
, RStream<K,V>
, RStreamAsync<K,V>
JCache
, RedissonAtomicDouble
, RedissonAtomicLong
, RedissonBaseAdder
, RedissonBinaryStream
, RedissonBitSet
, RedissonBlockingDeque
, RedissonBlockingQueue
, RedissonBloomFilter
, RedissonBoundedBlockingQueue
, RedissonBucket
, RedissonCountDownLatch
, RedissonDelayedQueue
, RedissonDeque
, RedissonDoubleAdder
, RedissonFairLock
, RedissonGeo
, RedissonHyperLogLog
, RedissonLexSortedSet
, RedissonList
, RedissonListMultimap
, RedissonListMultimapCache
, RedissonListMultimapValues
, RedissonLocalCachedMap
, RedissonLock
, RedissonLongAdder
, RedissonMap
, RedissonMapCache
, RedissonMultimap
, RedissonObject
, RedissonPermitExpirableSemaphore
, RedissonPriorityBlockingDeque
, RedissonPriorityBlockingQueue
, RedissonPriorityDeque
, RedissonPriorityQueue
, RedissonQueue
, RedissonQueueSemaphore
, RedissonRateLimiter
, RedissonReadLock
, RedissonReadWriteLock
, RedissonScoredSortedSet
, RedissonSemaphore
, RedissonSet
, RedissonSetCache
, RedissonSetMultimap
, RedissonSetMultimapCache
, RedissonSetMultimapValues
, RedissonSortedSet
, RedissonStream
, RedissonSubList
, RedissonTransactionalBucket
, RedissonTransactionalLocalCachedMap
, RedissonTransactionalLock
, RedissonTransactionalMap
, RedissonTransactionalMapCache
, RedissonTransactionalSet
, RedissonTransactionalSetCache
, RedissonWriteLock
public interface RObjectAsync
Modifier and Type | Method | 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<byte[]> |
dumpAsync() |
Returns dump of 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> |
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<Boolean> |
touchAsync() |
Update the last access time of an object in async mode.
|
RFuture<Boolean> |
unlinkAsync() |
Delete the objects.
|
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 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.