RAtomicDoubleReactive
, RAtomicLongReactive
, RBitSetReactive
, RBlockingDequeReactive<V>
, RBlockingQueueReactive<V>
, RBucketReactive<V>
, RCollectionReactive<V>
, RDequeReactive<V>
, RExpirableReactive
, RGeoReactive<V>
, RHyperLogLogReactive<V>
, RLexSortedSetReactive
, RListMultimapReactive<K,V>
, RListReactive<V>
, RLockReactive
, RMapCacheReactive<K,V>
, RMapReactive<K,V>
, RMultimapReactive<K,V>
, RPermitExpirableSemaphoreReactive
, RQueueReactive<V>
, RRateLimiterReactive
, RReadWriteLockReactive
, RScoredSortedSetReactive<V>
, RSemaphoreReactive
, RSetCacheReactive<V>
, RSetMultimapReactive<K,V>
, RSetReactive<V>
RedissonAtomicDoubleReactive
, RedissonAtomicLongReactive
, RedissonBitSetReactive
, RedissonBlockingDequeReactive
, RedissonBlockingQueueReactive
, RedissonBucketReactive
, RedissonDequeReactive
, RedissonGeoReactive
, RedissonHyperLogLogReactive
, RedissonLexSortedSetReactive
, RedissonListMultimapReactive
, RedissonListReactive
, RedissonLockReactive
, RedissonMapCacheReactive
, RedissonMapReactive
, RedissonPermitExpirableSemaphoreReactive
, RedissonQueueReactive
, RedissonRateLimiterReactive
, RedissonReadWriteLockReactive
, RedissonScoredSortedSetReactive
, RedissonSemaphoreReactive
, RedissonSetCacheReactive
, RedissonSetMultimapReactive
, RedissonSetReactive
public interface RObjectReactive
Modifier and Type | Method | Description |
---|---|---|
org.reactivestreams.Publisher<Void> |
copy(String host,
int port,
int database,
long timeout) |
Copy object from source Redis instance to destination Redis instance
|
org.reactivestreams.Publisher<Boolean> |
delete() |
Delete object in mode
|
org.reactivestreams.Publisher<byte[]> |
dump() |
Returns dump of object
|
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 |
org.reactivestreams.Publisher<Void> |
restore(byte[] state) |
Restores object using its state returned by
dump() method. |
org.reactivestreams.Publisher<Void> |
restore(byte[] state,
long timeToLive,
TimeUnit timeUnit) |
Restores object using its state returned by
dump() method and set time to live for it. |
org.reactivestreams.Publisher<Void> |
restoreAndReplace(byte[] state) |
Restores and replaces object if it already exists.
|
org.reactivestreams.Publisher<Void> |
restoreAndReplace(byte[] state,
long timeToLive,
TimeUnit timeUnit) |
Restores and replaces object if it already exists and set time to live for it.
|
org.reactivestreams.Publisher<Boolean> |
touch() |
Update the last access time of an object.
|
org.reactivestreams.Publisher<Boolean> |
unlink() |
Delete the objects.
|
String getName()
Codec getCodec()
org.reactivestreams.Publisher<Void> restore(byte[] state)
dump()
method.state
- - state of objectorg.reactivestreams.Publisher<Void> restore(byte[] state, long timeToLive, TimeUnit timeUnit)
dump()
method and set time to live for it.state
- - state of objecttimeToLive
- - time to live of the objecttimeUnit
- - time unitorg.reactivestreams.Publisher<Void> restoreAndReplace(byte[] state)
state
- - state of the objectorg.reactivestreams.Publisher<Void> restoreAndReplace(byte[] state, long timeToLive, TimeUnit timeUnit)
state
- - state of the objecttimeToLive
- - time to live of the objecttimeUnit
- - time unitorg.reactivestreams.Publisher<byte[]> dump()
org.reactivestreams.Publisher<Boolean> touch()
true
if object was touched else false
org.reactivestreams.Publisher<Boolean> unlink()
Requires Redis 4.0+
true
if it was exist and deleted else false
org.reactivestreams.Publisher<Void> copy(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<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.