Class RedissonJsonBucket<V>
- All Implemented Interfaces:
RBucket<V>,RBucketAsync<V>,RExpirable,RExpirableAsync,RJsonBucket<V>,RJsonBucketAsync<V>,RObject,RObjectAsync
- Author:
- Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name -
Constructor Summary
ConstructorsConstructorDescriptionRedissonJsonBucket(JsonCodec codec, CommandAsyncExecutor connectionManager, String name) -
Method Summary
Modifier and TypeMethodDescriptionlongarrayAppend(String path, Object... values) Appends values to array specified by JSONPath.arrayAppendAsync(String path, Object... values) Appends values to array specified by JSONPath.arrayAppendMulti(String path, Object... values) Appends values to arrays specified by JSONPath.arrayAppendMultiAsync(String path, Object... values) Appends values to arrays specified by JSONPath.longarrayIndex(String path, Object value) Returns index of object in array specified by JSONPathlongarrayIndex(String path, Object value, long start, long end) Returns index of object in array specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexesarrayIndexAsync(String path, Object value) Returns index of object in array specified by JSONPatharrayIndexAsync(String path, Object value, long start, long end) Returns index of object in array specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexesarrayIndexMulti(String path, Object value) Returns index of object in arrays specified by JSONPatharrayIndexMulti(String path, Object value, long start, long end) Returns index of object in arrays specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexesarrayIndexMultiAsync(String path, Object value) Returns index of object in arrays specified by JSONPatharrayIndexMultiAsync(String path, Object value, long start, long end) Returns index of object in arrays specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexeslongarrayInsert(String path, long index, Object... values) Inserts values into array specified by JSONPath.arrayInsertAsync(String path, long index, Object... values) Inserts values into array specified by JSONPath.arrayInsertMulti(String path, long index, Object... values) Inserts values into arrays specified by JSONPath.arrayInsertMultiAsync(String path, long index, Object... values) Inserts values into arrays specified by JSONPath.<T> TarrayPollFirst(JsonCodec codec, String path) Polls first element of array specified by JSONPath.<T> RFuture<T> arrayPollFirstAsync(JsonCodec codec, String path) Polls first element of array specified by JSONPath.<T> List<T> arrayPollFirstMulti(JsonCodec codec, String path) Polls first element of arrays specified by JSONPath.arrayPollFirstMultiAsync(JsonCodec codec, String path) Polls first element of arrays specified by JSONPath.<T> TarrayPollLast(JsonCodec codec, String path) Polls last element of array specified by JSONPath.<T> RFuture<T> arrayPollLastAsync(JsonCodec codec, String path) Polls last element of array specified by JSONPath.<T> List<T> arrayPollLastMulti(JsonCodec codec, String path) Polls last element of arrays specified by JSONPath.arrayPollLastMultiAsync(JsonCodec codec, String path) Polls last element of arrays specified by JSONPath.<T> TPops element located at index of array specified by JSONPath.<T> RFuture<T> arrayPopAsync(JsonCodec codec, String path, long index) Pops element located at index of array specified by JSONPath.<T> List<T> arrayPopMulti(JsonCodec codec, String path, long index) Pops elements located at index of arrays specified by JSONPath.arrayPopMultiAsync(JsonCodec codec, String path, long index) Pops elements located at index of arrays specified by JSONPath.longReturns size of array specified by JSONPath.arraySizeAsync(String path) Returns size of array specified by JSONPath.arraySizeMulti(String path) Returns size of arrays specified by JSONPath.arraySizeMultiAsync(String path) Returns size of arrays specified by JSONPath.longTrims array specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes.arrayTrimAsync(String path, long start, long end) Trims array specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes.arrayTrimMulti(String path, long start, long end) Trims arrays specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes.arrayTrimMultiAsync(String path, long start, long end) Trims arrays specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes.longclear()Clears json container.longClears json container specified by JSONPath.Clears json container.clearAsync(String path) Clears json container specified by JSONPath.booleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) booleancompareAndSet(String path, Object expect, Object update) Atomically sets the value to the given updated value by given JSONPath, only if serialized state of the current value equals to serialized state of the expected value.booleancompareAndSet(V expect, V update) Atomically sets the value to the given updated value only if serialized state of the current value equals to serialized state of the expected value.compareAndSetAsync(String path, Object expect, Object update) Atomically sets the value to the given updated value by given JSONPath, only if serialized state of the current value equals to serialized state of the expected value.compareAndSetAsync(V expect, V update) Atomically sets the value to the given updated value only if serialized state of the current value equals to serialized state of the expected value.compareAndSetUpdateAsync(String path, Object expect, Object update) longReturns keys amount in JSON containerlongReturns keys amount in JSON container specified by JSONPathReturns keys amount in JSON containercountKeysAsync(String path) Returns keys amount in JSON container specified by JSONPathcountKeysMulti(String path) Returns list of keys amount in JSON containers specified by JSONPathcountKeysMultiAsync(String path) Returns list of keys amount in JSON containers specified by JSONPathlongDeletes JSON elements specified by JSONPathDelete object in async modedeleteAsync(String path) Deletes JSON elements specified by JSONPathbooleanUseRExpirable.expire(Duration)insteadbooleanSets a timeout for this object.booleanSets an expiration date for this object.expireAsync(long timeToLive, TimeUnit timeUnit) UseRExpirableAsync.expireAsync(Duration)insteadexpireAsync(long timeToLive, TimeUnit timeUnit, String param, String... keys) expireAsync(Duration duration) Set a timeout for object.expireAsync(Instant instant) Set an expire date for object.booleanexpireAt(long timestamp) UseRExpirable.expire(Instant)insteadbooleanUseRExpirable.expire(Instant)insteadexpireAtAsync(long timestamp) UseRExpirableAsync.expireAsync(Instant)insteadexpireAtAsync(long timestamp, String param, String... keys) expireAtAsync(Date timestamp) UseRExpirableAsync.expireAsync(Instant)insteadbooleanexpireIfGreater(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.booleanexpireIfGreater(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.expireIfGreaterAsync(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.expireIfGreaterAsync(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.booleanexpireIfLess(Duration duration) Sets a timeout for this object only if it's less than timeout set before.booleanexpireIfLess(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.expireIfLessAsync(Duration duration) Sets a timeout for this object only if it's less than timeout set before.expireIfLessAsync(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.booleanexpireIfNotSet(Duration duration) Sets a timeout for this object only if it hasn't been set before.booleanexpireIfNotSet(Instant time) Sets an expiration date for this object only if it hasn't been set before.expireIfNotSetAsync(Duration duration) Sets a timeout for this object only if it hasn't been set before.expireIfNotSetAsync(Instant time) Sets an expiration date for this object only if it hasn't been set before.booleanexpireIfSet(Duration duration) Sets a timeout for this object only if it has been already set.booleanexpireIfSet(Instant time) Sets an expiration date for this object only if it has been already set.expireIfSetAsync(Duration duration) Sets a timeout for this object only if it has been already set.expireIfSetAsync(Instant time) Sets an expiration date for this object only if it has been already set.get()Retrieves element stored in the holder.<T> TGet Json object/objects by JSONPathRetrieves current element in the holder and clears expiration date set before.Retrieves current element in the holder and clears expiration date set before.Retrieves element in the holder and removes it.Retrieves element in the holder and removes it.getAndExpire(Duration duration) Retrieves current element in the holder and sets an expiration duration for it.getAndExpire(Instant time) Retrieves current element in the holder and sets an expiration date for it.getAndExpireAsync(Duration duration) Retrieves current element in the holder and sets an expiration duration for it.getAndExpireAsync(Instant time) Retrieves current element in the holder and sets an expiration date for it.<T> TRetrieves current value of element specified by JSONPath and replaces it withnewValue.Retrieves current element in the holder and replaces it withnewValue.UseRBucket.getAndSet(Object, Duration)insteadRetrieves current element in the holder and replaces it withvaluewith defined expirationduration.<T> RFuture<T> getAndSetAsync(JsonCodec codec, String path, Object newValue) Retrieves current value of element specified by JSONPath and replaces it withnewValue.getAndSetAsync(V newValue) Retrieves current element in the holder and replaces it withnewValue.getAndSetAsync(V value, long timeToLive, TimeUnit timeUnit) UseRBucketAsync.getAndSetAsync(Object, Duration)insteadgetAndSetAsync(V value, Duration duration) Retrieves current element in the holder and replaces it withvaluewith defined expirationduration.getAsync()Retrieves element stored in the holder.<T> RFuture<T> Get Json object/objects by JSONPathlongExpiration time of Redisson object that has a timeoutExpiration time of Redisson object that has a timeoutgetKeys()Returns list of keys in JSON containerReturns list of keys in JSON container specified by JSONPathReturns list of keys in JSON containergetKeysAsync(String path) Returns list of keys in JSON container specified by JSONPathgetKeysMulti(String path) Returns list of keys in JSON containers specified by JSONPathgetKeysMultiAsync(String path) Returns list of keys in JSON containers specified by JSONPathgetType()Returns type of elementReturns type of element specified by JSONPathReturns type of elementgetTypeAsync(String path) Returns type of element specified by JSONPath<T extends Number>
TincrementAndGet(String path, T delta) Increments the current value specified by JSONPath bydelta.incrementAndGetAsync(String path, T delta) Increments the current value specified by JSONPath bydelta.incrementAndGetMulti(String path, T delta) Increments the current values specified by JSONPath bydelta.incrementAndGetMultiAsync(String path, T delta) Increments the current values specified by JSONPath bydelta.voidMerges object into element by the specified JSONPath.mergeAsync(String path, Object value) Merges object into element by the specified JSONPath.longRemaining time to live of Redisson object that has a timeoutRemaining time to live of Redisson object that has a timeoutvoidStores object into element by specified JSONPath.voidStores element into the holder.voidUseRBucket.set(Object, Duration)insteadvoidStoresvalueinto the holder with defined expirationduration.voidsetAndKeepTTL(V value) Set value and keep existing TTL.setAndKeepTTLAsync(V value) Set value and keep existing TTL.Stores object into element by specified JSONPath.Stores element into the holder.UseRBucketAsync.setAsync(Object, Duration)insteadStoresvalueinto the holder with defined expirationduration.booleansetIfAbsent(String path, Object value) Sets Json object by JSONPath only if previous value is emptybooleansetIfAbsent(V value) Sets value only if object holder doesn't exist.booleansetIfAbsent(V value, Duration duration) Sets value with defined duration only if object holder doesn't exist.setIfAbsentAsync(String path, Object value) Sets Json object by JSONPath only if previous value is emptysetIfAbsentAsync(V value) Sets value only if object holder doesn't exist.setIfAbsentAsync(V value, Duration duration) Sets value with defined duration only if object holder doesn't exist.booleansetIfExists(String path, Object value) Sets Json object by JSONPath only if previous value is non-emptybooleansetIfExists(V value) Sets value only if object holder already exists.booleansetIfExists(V value, long timeToLive, TimeUnit timeUnit) UseRBucket.setIfExists(Object, Duration)insteadbooleansetIfExists(V value, Duration duration) Setsvaluewith expirationdurationonly if object holder already exists.setIfExistsAsync(String path, Object value) Sets Json object by JSONPath only if previous value is non-emptysetIfExistsAsync(V value) Sets value only if it's already exists.setIfExistsAsync(V value, long timeToLive, TimeUnit timeUnit) UseRBucketAsync.setIfExistsAsync(Object, Duration)insteadsetIfExistsAsync(V value, Duration duration) Setsvaluewith expirationdurationonly if object holder already exists.longsize()Returns size of object in bytes.Returns size of object in byteslongstringAppend(String path, Object value) Appends string data to element specified by JSONPath.stringAppendAsync(String path, Object value) Appends string data to element specified by JSONPath.stringAppendMulti(String path, Object value) Appends string data to elements specified by JSONPath.stringAppendMultiAsync(String path, Object value) Appends string data to elements specified by JSONPath.stringSize(String path) Returns size of string data by JSONPathstringSizeAsync(String path) Returns size of string data by JSONPathstringSizeMulti(String path) Returns list of string data size by JSONPath.stringSizeMultiAsync(String path) Returns list of string data size by JSONPath.booleanToggle boolean value specified by JSONPathtoggleAsync(String path) Toggle boolean value specified by JSONPathtoggleMulti(String path) Toggle boolean values specified by JSONPathtoggleMultiAsync(String path) Toggle boolean values specified by JSONPathbooleanUseRJsonBucket.setIfAbsent(String, Object)insteadbooleanUseRBucket.setIfAbsent(Object)insteadbooleanUseRBucket.setIfAbsent(Object, Duration)insteadtrySetAsync(String path, Object value) trySetAsync(V value) UseRBucketAsync.setIfAbsentAsync(Object)insteadtrySetAsync(V value, long timeToLive, TimeUnit timeUnit) UseRBucketAsync.setIfAbsentAsync(Object, Duration)insteadMethods inherited from class org.redisson.RedissonObject
addListener, addListener, addListenerAsync, addListenerAsync, addTrackingListener, addTrackingListenerAsync, checkNotBatch, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, getServiceManager, getSubscribeService, isExists, isExistsAsync, map, mapName, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListener, removeListenerAsync, removeListenerAsync, removeListenerAsync, removeTrackingListener, removeTrackingListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.redisson.api.RBucket
addListenerMethods inherited from interface org.redisson.api.RBucketAsync
addListenerAsyncMethods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLiveMethods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods inherited from interface org.redisson.api.RObjectAsync
copyAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Constructor Details
-
RedissonJsonBucket
-
-
Method Details
-
size
public long size()Description copied from interface:RBucketReturns size of object in bytes. -
sizeAsync
Description copied from interface:RBucketAsyncReturns size of object in bytes- Specified by:
sizeAsyncin interfaceRBucketAsync<V>- Returns:
- object size
-
stringSizeMulti
Description copied from interface:RJsonBucketReturns list of string data size by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
stringSizeMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- list of string data sizes
-
stringSizeMultiAsync
Description copied from interface:RJsonBucketAsyncReturns list of string data size by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
stringSizeMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- list of string data sizes
-
stringSize
Description copied from interface:RJsonBucketReturns size of string data by JSONPath- Specified by:
stringSizein interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- size of string
-
stringSizeAsync
Description copied from interface:RJsonBucketAsyncReturns size of string data by JSONPath- Specified by:
stringSizeAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- size of string
-
get
Description copied from interface:RBucketRetrieves element stored in the holder. -
getAsync
Description copied from interface:RBucketAsyncRetrieves element stored in the holder.- Specified by:
getAsyncin interfaceRBucketAsync<V>- Returns:
- element
-
get
Description copied from interface:RJsonBucketGet Json object/objects by JSONPath- Specified by:
getin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpaths- JSON paths- Returns:
- object
-
getAsync
Description copied from interface:RJsonBucketAsyncGet Json object/objects by JSONPath- Specified by:
getAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpaths- JSON paths- Returns:
- object
-
getAndDelete
Description copied from interface:RBucketRetrieves element in the holder and removes it.- Specified by:
getAndDeletein interfaceRBucket<V>- Returns:
- element
-
getAndDeleteAsync
Description copied from interface:RBucketAsyncRetrieves element in the holder and removes it.- Specified by:
getAndDeleteAsyncin interfaceRBucketAsync<V>- Returns:
- element
-
setIfAbsent
Description copied from interface:RBucketSets value only if object holder doesn't exist.- Specified by:
setIfAbsentin interfaceRBucket<V>- Parameters:
value- - value to set- Returns:
trueif successful, orfalseif element was already set
-
setIfAbsent
Description copied from interface:RBucketSets value with defined duration only if object holder doesn't exist.- Specified by:
setIfAbsentin interfaceRBucket<V>- Parameters:
value- value to setduration- expiration duration- Returns:
trueif successful, orfalseif element was already set
-
setIfAbsentAsync
Description copied from interface:RBucketAsyncSets value only if object holder doesn't exist.- Specified by:
setIfAbsentAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to set- Returns:
trueif successful, orfalseif element was already set
-
setIfAbsentAsync
Description copied from interface:RBucketAsyncSets value with defined duration only if object holder doesn't exist.- Specified by:
setIfAbsentAsyncin interfaceRBucketAsync<V>- Parameters:
value- value to setduration- expiration duration- Returns:
trueif successful, orfalseif element was already set
-
trySet
Description copied from interface:RBucketUseRBucket.setIfAbsent(Object)instead -
trySetAsync
Description copied from interface:RBucketAsyncUseRBucketAsync.setIfAbsentAsync(Object)instead- Specified by:
trySetAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to set- Returns:
trueif successful, orfalseif element was already set
-
setIfAbsent
Description copied from interface:RJsonBucketSets Json object by JSONPath only if previous value is empty- Specified by:
setIfAbsentin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- object- Returns:
trueif successful, orfalseif value was already set
-
setIfAbsentAsync
Description copied from interface:RJsonBucketAsyncSets Json object by JSONPath only if previous value is empty- Specified by:
setIfAbsentAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- object- Returns:
trueif successful, orfalseif value was already set
-
trySet
Description copied from interface:RJsonBucketUseRJsonBucket.setIfAbsent(String, Object)instead- Specified by:
trySetin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- object- Returns:
trueif successful, orfalseif value was already set
-
trySetAsync
Description copied from interface:RJsonBucketAsync- Specified by:
trySetAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- object- Returns:
trueif successful, orfalseif value was already set
-
trySet
Description copied from interface:RBucketUseRBucket.setIfAbsent(Object, Duration)instead -
trySetAsync
Description copied from interface:RBucketAsyncUseRBucketAsync.setIfAbsentAsync(Object, Duration)instead- Specified by:
trySetAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to settimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
trueif successful, orfalseif element was already set
-
setIfExists
Description copied from interface:RBucketSets value only if object holder already exists.- Specified by:
setIfExistsin interfaceRBucket<V>- Parameters:
value- - value to set- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExistsAsync
Description copied from interface:RBucketAsyncSets value only if it's already exists.- Specified by:
setIfExistsAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to set- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExists
Description copied from interface:RJsonBucketSets Json object by JSONPath only if previous value is non-empty- Specified by:
setIfExistsin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- object- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExistsAsync
Description copied from interface:RJsonBucketAsyncSets Json object by JSONPath only if previous value is non-empty- Specified by:
setIfExistsAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- object- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExists
Description copied from interface:RBucketUseRBucket.setIfExists(Object, Duration)instead- Specified by:
setIfExistsin interfaceRBucket<V>- Parameters:
value- - value to settimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExistsAsync
Description copied from interface:RBucketAsyncUseRBucketAsync.setIfExistsAsync(Object, Duration)instead- Specified by:
setIfExistsAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to settimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExists
Description copied from interface:RBucketSetsvaluewith expirationdurationonly if object holder already exists.- Specified by:
setIfExistsin interfaceRBucket<V>- Parameters:
value- value to setduration- expiration duration- Returns:
trueif successful, orfalseif element wasn't set
-
setIfExistsAsync
Description copied from interface:RBucketAsyncSetsvaluewith expirationdurationonly if object holder already exists.- Specified by:
setIfExistsAsyncin interfaceRBucketAsync<V>- Parameters:
value- value to setduration- expiration duration- Returns:
trueif successful, orfalseif element wasn't set
-
compareAndSet
Description copied from interface:RBucketAtomically sets the value to the given updated value only if serialized state of the current value equals to serialized state of the expected value.- Specified by:
compareAndSetin interfaceRBucket<V>- Parameters:
expect- the expected valueupdate- the new value- Returns:
trueif successful; orfalseif the actual value was not equal to the expected value.
-
compareAndSetAsync
Description copied from interface:RBucketAsyncAtomically sets the value to the given updated value only if serialized state of the current value equals to serialized state of the expected value.- Specified by:
compareAndSetAsyncin interfaceRBucketAsync<V>- Parameters:
expect- the expected valueupdate- the new value- Returns:
trueif successful; orfalseif the actual value was not equal to the expected value.
-
compareAndSet
Description copied from interface:RJsonBucketAtomically sets the value to the given updated value by given JSONPath, only if serialized state of the current value equals to serialized state of the expected value.- Specified by:
compareAndSetin interfaceRJsonBucket<V>- Parameters:
path- JSON pathexpect- the expected valueupdate- the new value- Returns:
trueif successful; orfalseif the actual value was not equal to the expected value.
-
compareAndSetAsync
Description copied from interface:RJsonBucketAsyncAtomically sets the value to the given updated value by given JSONPath, only if serialized state of the current value equals to serialized state of the expected value.- Specified by:
compareAndSetAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathexpect- the expected valueupdate- the new value- Returns:
trueif successful; orfalseif the actual value was not equal to the expected value.
-
compareAndSetUpdateAsync
-
getAndSet
Description copied from interface:RBucketRetrieves current element in the holder and replaces it withnewValue. -
getAndSetAsync
Description copied from interface:RBucketAsyncRetrieves current element in the holder and replaces it withnewValue.- Specified by:
getAndSetAsyncin interfaceRBucketAsync<V>- Parameters:
newValue- - value to set- Returns:
- previous value
-
getAndSet
Description copied from interface:RJsonBucketRetrieves current value of element specified by JSONPath and replaces it withnewValue.- Specified by:
getAndSetin interfaceRJsonBucket<V>- Parameters:
codec- object codecpath- JSON pathnewValue- value to set- Returns:
- previous value
-
getAndSetAsync
Description copied from interface:RJsonBucketAsyncRetrieves current value of element specified by JSONPath and replaces it withnewValue.- Specified by:
getAndSetAsyncin interfaceRJsonBucketAsync<V>- Parameters:
codec- object codecpath- JSON pathnewValue- value to set- Returns:
- previous value
-
getAndSet
Description copied from interface:RBucketUseRBucket.getAndSet(Object, Duration)instead -
getAndSetAsync
Description copied from interface:RBucketAsyncUseRBucketAsync.getAndSetAsync(Object, Duration)instead- Specified by:
getAndSetAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to settimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
- previous value
-
getAndSet
Description copied from interface:RBucketRetrieves current element in the holder and replaces it withvaluewith defined expirationduration. -
getAndSetAsync
Description copied from interface:RBucketAsyncRetrieves current element in the holder and replaces it withvaluewith defined expirationduration.- Specified by:
getAndSetAsyncin interfaceRBucketAsync<V>- Parameters:
value- value to setduration- expiration duration- Returns:
- previous value
-
getAndExpire
Description copied from interface:RBucketRetrieves current element in the holder and sets an expiration duration for it.Requires Redis 6.2.0 and higher.
- Specified by:
getAndExpirein interfaceRBucket<V>- Parameters:
duration- of object time to live interval- Returns:
- element
-
getAndExpireAsync
Description copied from interface:RBucketAsyncRetrieves current element in the holder and sets an expiration duration for it.Requires Redis 6.2.0 and higher.
- Specified by:
getAndExpireAsyncin interfaceRBucketAsync<V>- Parameters:
duration- of object time to live interval- Returns:
- element
-
getAndExpire
Description copied from interface:RBucketRetrieves current element in the holder and sets an expiration date for it.Requires Redis 6.2.0 and higher.
- Specified by:
getAndExpirein interfaceRBucket<V>- Parameters:
time- of exact object expiration moment- Returns:
- element
-
getAndExpireAsync
Description copied from interface:RBucketAsyncRetrieves current element in the holder and sets an expiration date for it.Requires Redis 6.2.0 and higher.
- Specified by:
getAndExpireAsyncin interfaceRBucketAsync<V>- Parameters:
time- of exact object expiration moment- Returns:
- element
-
getAndClearExpire
Description copied from interface:RBucketRetrieves current element in the holder and clears expiration date set before.Requires Redis 6.2.0 and higher.
- Specified by:
getAndClearExpirein interfaceRBucket<V>- Returns:
- element
-
getAndClearExpireAsync
Description copied from interface:RBucketAsyncRetrieves current element in the holder and clears expiration date set before.Requires Redis 6.2.0 and higher.
- Specified by:
getAndClearExpireAsyncin interfaceRBucketAsync<V>- Returns:
- element
-
set
Description copied from interface:RBucketStores element into the holder. -
setAsync
Description copied from interface:RBucketAsyncStores element into the holder.- Specified by:
setAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to set- Returns:
- void
-
set
Description copied from interface:RJsonBucketStores object into element by specified JSONPath.- Specified by:
setin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- value to set
-
setAsync
Description copied from interface:RJsonBucketAsyncStores object into element by specified JSONPath.- Specified by:
setAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- value to set- Returns:
- void
-
set
Description copied from interface:RBucketUseRBucket.set(Object, Duration)instead -
setAsync
Description copied from interface:RBucketAsyncUseRBucketAsync.setAsync(Object, Duration)instead- Specified by:
setAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to settimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
- void
-
set
Description copied from interface:RBucketStoresvalueinto the holder with defined expirationduration. -
setAsync
Description copied from interface:RBucketAsyncStoresvalueinto the holder with defined expirationduration.- Specified by:
setAsyncin interfaceRBucketAsync<V>- Parameters:
value- value to setduration- expiration duration
-
setAndKeepTTL
Description copied from interface:RBucketSet value and keep existing TTL.Requires Redis 6.0.0 and higher.
- Specified by:
setAndKeepTTLin interfaceRBucket<V>- Parameters:
value- - value to set
-
setAndKeepTTLAsync
Description copied from interface:RBucketAsyncSet value and keep existing TTL.Requires Redis 6.0.0 and higher.
- Specified by:
setAndKeepTTLAsyncin interfaceRBucketAsync<V>- Parameters:
value- - value to set- Returns:
- void
-
deleteAsync
Description copied from interface:RObjectAsyncDelete object in async mode- Specified by:
deleteAsyncin interfaceRObjectAsync- Overrides:
deleteAsyncin classRedissonObject- Returns:
trueif object was deletedfalseif not
-
stringAppend
Description copied from interface:RJsonBucketAppends string data to element specified by JSONPath. Returns new size of string data.- Specified by:
stringAppendin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- data- Returns:
- size of string data
-
stringAppendAsync
Description copied from interface:RJsonBucketAsyncAppends string data to element specified by JSONPath. Returns new size of string data.- Specified by:
stringAppendAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- data- Returns:
- size of string data
-
stringAppendMulti
Description copied from interface:RJsonBucketAppends string data to elements specified by JSONPath. Returns new size of string data. Compatible only with enhanced syntax starting with '$' character.- Specified by:
stringAppendMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- data- Returns:
- list of string data sizes
-
stringAppendMultiAsync
Description copied from interface:RJsonBucketAsyncAppends string data to elements specified by JSONPath. Returns new size of string data. Compatible only with enhanced syntax starting with '$' character.- Specified by:
stringAppendMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- data- Returns:
- list of string data sizes
-
arrayAppend
Description copied from interface:RJsonBucketAppends values to array specified by JSONPath. Returns new size of array.- Specified by:
arrayAppendin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalues- values to append- Returns:
- size of array
-
arrayAppendAsync
Description copied from interface:RJsonBucketAsyncAppends values to array specified by JSONPath. Returns new size of array.- Specified by:
arrayAppendAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalues- values to append- Returns:
- size of array
-
arrayAppendMulti
Description copied from interface:RJsonBucketAppends values to arrays specified by JSONPath. Returns new size of arrays. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayAppendMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalues- values to append- Returns:
- list of arrays size
-
arrayAppendMultiAsync
Description copied from interface:RJsonBucketAsyncAppends values to arrays specified by JSONPath. Returns new size of arrays. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayAppendMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalues- values to append- Returns:
- list of arrays size
-
arrayIndex
Description copied from interface:RJsonBucketReturns index of object in array specified by JSONPath. -1 means object not found.- Specified by:
arrayIndexin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- value to search- Returns:
- index in array
-
arrayIndexAsync
Description copied from interface:RJsonBucketAsyncReturns index of object in array specified by JSONPath. -1 means object not found.- Specified by:
arrayIndexAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- value to search- Returns:
- index in array
-
arrayIndexMulti
Description copied from interface:RJsonBucketReturns index of object in arrays specified by JSONPath. -1 means object not found. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayIndexMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- value to search- Returns:
- list of index in arrays
-
arrayIndexMultiAsync
Description copied from interface:RJsonBucketAsyncReturns index of object in arrays specified by JSONPath. -1 means object not found. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayIndexMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- value to search- Returns:
- list of index in arrays
-
arrayIndex
Description copied from interface:RJsonBucketReturns index of object in array specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexes. -1 means object not found.- Specified by:
arrayIndexin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- value to searchstart- start index, inclusiveend- end index, exclusive- Returns:
- index in array
-
arrayIndexAsync
Description copied from interface:RJsonBucketAsyncReturns index of object in array specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexes. -1 means object not found.- Specified by:
arrayIndexAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- value to searchstart- start index, inclusiveend- end index, exclusive- Returns:
- index in array
-
arrayIndexMulti
Description copied from interface:RJsonBucketReturns index of object in arrays specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexes. -1 means object not found. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayIndexMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- value to searchstart- start index, inclusiveend- end index, exclusive- Returns:
- list of index in arrays
-
arrayIndexMultiAsync
Description copied from interface:RJsonBucketAsyncReturns index of object in arrays specified by JSONPath in range betweenstart(inclusive) andend(exclusive) indexes. -1 means object not found. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayIndexMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- value to searchstart- start index, inclusiveend- end index, exclusive- Returns:
- list of index in arrays
-
arrayInsert
Description copied from interface:RJsonBucketInserts values into array specified by JSONPath. Values are inserted at definedindex.- Specified by:
arrayInsertin interfaceRJsonBucket<V>- Parameters:
path- JSON pathindex- array index at which values are insertedvalues- values to insert- Returns:
- size of array
-
arrayInsertAsync
Description copied from interface:RJsonBucketAsyncInserts values into array specified by JSONPath. Values are inserted at definedindex.- Specified by:
arrayInsertAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathindex- array index at which values are insertedvalues- values to insert- Returns:
- size of array
-
arrayInsertMulti
Description copied from interface:RJsonBucketInserts values into arrays specified by JSONPath. Values are inserted at definedindex. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayInsertMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathindex- array index at which values are insertedvalues- values to insert- Returns:
- list of arrays size
-
arrayInsertMultiAsync
Description copied from interface:RJsonBucketAsyncInserts values into arrays specified by JSONPath. Values are inserted at definedindex. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayInsertMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathindex- array index at which values are insertedvalues- values to insert- Returns:
- list of arrays size
-
arraySize
Description copied from interface:RJsonBucketReturns size of array specified by JSONPath.- Specified by:
arraySizein interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- size of array
-
arraySizeAsync
Description copied from interface:RJsonBucketAsyncReturns size of array specified by JSONPath.- Specified by:
arraySizeAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- size of array
-
arraySizeMulti
Description copied from interface:RJsonBucketReturns size of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arraySizeMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- list of arrays size
-
arraySizeMultiAsync
Description copied from interface:RJsonBucketAsyncReturns size of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arraySizeMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- list of arrays size
-
arrayPollLast
Description copied from interface:RJsonBucketPolls last element of array specified by JSONPath.- Specified by:
arrayPollLastin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- last element
-
arrayPollLastAsync
Description copied from interface:RJsonBucketAsyncPolls last element of array specified by JSONPath.- Specified by:
arrayPollLastAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- last element
-
arrayPollLastMulti
Description copied from interface:RJsonBucketPolls last element of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayPollLastMultiin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- list of last elements
-
arrayPollLastMultiAsync
Description copied from interface:RJsonBucketAsyncPolls last element of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayPollLastMultiAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- list of last elements
-
arrayPollFirst
Description copied from interface:RJsonBucketPolls first element of array specified by JSONPath.- Specified by:
arrayPollFirstin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- first element
-
arrayPollFirstAsync
Description copied from interface:RJsonBucketAsyncPolls first element of array specified by JSONPath.- Specified by:
arrayPollFirstAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- first element
-
arrayPollFirstMulti
Description copied from interface:RJsonBucketPolls first element of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayPollFirstMultiin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- list of first elements
-
arrayPollFirstMultiAsync
Description copied from interface:RJsonBucketAsyncPolls first element of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayPollFirstMultiAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON path- Returns:
- list of first elements
-
arrayPop
Description copied from interface:RJsonBucketPops element located at index of array specified by JSONPath.- Specified by:
arrayPopin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON pathindex- array index- Returns:
- element
-
arrayPopAsync
Description copied from interface:RJsonBucketAsyncPops element located at index of array specified by JSONPath.- Specified by:
arrayPopAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON pathindex- array index- Returns:
- element
-
arrayPopMulti
Description copied from interface:RJsonBucketPops elements located at index of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayPopMultiin interfaceRJsonBucket<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON pathindex- array index- Returns:
- list of elements
-
arrayPopMultiAsync
Description copied from interface:RJsonBucketAsyncPops elements located at index of arrays specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayPopMultiAsyncin interfaceRJsonBucketAsync<V>- Type Parameters:
T- the type of object- Parameters:
codec- object codecpath- JSON pathindex- array index- Returns:
- list of elements
-
arrayTrim
Description copied from interface:RJsonBucketTrims array specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes.- Specified by:
arrayTrimin interfaceRJsonBucket<V>- Parameters:
path- JSON pathstart- start index, inclusiveend- end index, inclusive- Returns:
- length of array
-
arrayTrimAsync
Description copied from interface:RJsonBucketAsyncTrims array specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes.- Specified by:
arrayTrimAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathstart- start index, inclusiveend- end index, inclusive- Returns:
- length of array
-
arrayTrimMulti
Description copied from interface:RJsonBucketTrims arrays specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayTrimMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathstart- start index, inclusiveend- end index, inclusive- Returns:
- length of array
-
arrayTrimMultiAsync
Description copied from interface:RJsonBucketAsyncTrims arrays specified by JSONPath in range betweenstart(inclusive) andend(inclusive) indexes. Compatible only with enhanced syntax starting with '$' character.- Specified by:
arrayTrimMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathstart- start index, inclusiveend- end index, inclusive- Returns:
- length of array
-
clear
public long clear()Description copied from interface:RJsonBucketClears json container.- Specified by:
clearin interfaceRJsonBucket<V>- Returns:
- number of cleared containers
-
clearAsync
Description copied from interface:RJsonBucketAsyncClears json container.- Specified by:
clearAsyncin interfaceRJsonBucketAsync<V>- Returns:
- number of cleared containers
-
clear
Description copied from interface:RJsonBucketClears json container specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
clearin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- number of cleared containers
-
clearAsync
Description copied from interface:RJsonBucketAsyncClears json container specified by JSONPath. Compatible only with enhanced syntax starting with '$' character.- Specified by:
clearAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- number of cleared containers
-
incrementAndGet
Description copied from interface:RJsonBucketIncrements the current value specified by JSONPath bydelta.- Specified by:
incrementAndGetin interfaceRJsonBucket<V>- Parameters:
path- JSON pathdelta- increment value- Returns:
- the updated value
-
incrementAndGetAsync
Description copied from interface:RJsonBucketAsyncIncrements the current value specified by JSONPath bydelta.- Specified by:
incrementAndGetAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathdelta- increment value- Returns:
- the updated value
-
incrementAndGetMulti
Description copied from interface:RJsonBucketIncrements the current values specified by JSONPath bydelta. Compatible only with enhanced syntax starting with '$' character.- Specified by:
incrementAndGetMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON pathdelta- increment value- Returns:
- list of updated value
-
incrementAndGetMultiAsync
Description copied from interface:RJsonBucketAsyncIncrements the current values specified by JSONPath bydelta. Compatible only with enhanced syntax starting with '$' character.- Specified by:
incrementAndGetMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathdelta- increment value- Returns:
- list of updated value
-
countKeys
public long countKeys()Description copied from interface:RJsonBucketReturns keys amount in JSON container- Specified by:
countKeysin interfaceRJsonBucket<V>- Returns:
- keys amount
-
countKeysAsync
Description copied from interface:RJsonBucketAsyncReturns keys amount in JSON container- Specified by:
countKeysAsyncin interfaceRJsonBucketAsync<V>- Returns:
- keys amount
-
countKeys
Description copied from interface:RJsonBucketReturns keys amount in JSON container specified by JSONPath- Specified by:
countKeysin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- keys amount
-
countKeysAsync
Description copied from interface:RJsonBucketAsyncReturns keys amount in JSON container specified by JSONPath- Specified by:
countKeysAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- keys amount
-
countKeysMulti
Description copied from interface:RJsonBucketReturns list of keys amount in JSON containers specified by JSONPath- Specified by:
countKeysMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- list of keys amount
-
countKeysMultiAsync
Description copied from interface:RJsonBucketAsyncReturns list of keys amount in JSON containers specified by JSONPath- Specified by:
countKeysMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- list of keys amount
-
getKeys
Description copied from interface:RJsonBucketReturns list of keys in JSON container- Specified by:
getKeysin interfaceRJsonBucket<V>- Returns:
- list of keys
-
getKeysAsync
Description copied from interface:RJsonBucketAsyncReturns list of keys in JSON container- Specified by:
getKeysAsyncin interfaceRJsonBucketAsync<V>- Returns:
- list of keys
-
getKeys
Description copied from interface:RJsonBucketReturns list of keys in JSON container specified by JSONPath- Specified by:
getKeysin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- list of keys
-
getKeysAsync
Description copied from interface:RJsonBucketAsyncReturns list of keys in JSON container specified by JSONPath- Specified by:
getKeysAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- list of keys
-
getKeysMulti
Description copied from interface:RJsonBucketReturns list of keys in JSON containers specified by JSONPath- Specified by:
getKeysMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- list of keys
-
getKeysMultiAsync
Description copied from interface:RJsonBucketAsyncReturns list of keys in JSON containers specified by JSONPath- Specified by:
getKeysMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- list of keys
-
toggle
Description copied from interface:RJsonBucketToggle boolean value specified by JSONPath- Specified by:
togglein interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- new boolean value
-
toggleAsync
Description copied from interface:RJsonBucketAsyncToggle boolean value specified by JSONPath- Specified by:
toggleAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- new boolean value
-
toggleMulti
Description copied from interface:RJsonBucketToggle boolean values specified by JSONPath- Specified by:
toggleMultiin interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- list of boolean values
-
toggleMultiAsync
Description copied from interface:RJsonBucketAsyncToggle boolean values specified by JSONPath- Specified by:
toggleMultiAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- list of boolean values
-
getType
Description copied from interface:RJsonBucketReturns type of element- Specified by:
getTypein interfaceRJsonBucket<V>- Returns:
- type of element
-
getTypeAsync
Description copied from interface:RJsonBucketAsyncReturns type of element- Specified by:
getTypeAsyncin interfaceRJsonBucketAsync<V>- Returns:
- type of element
-
getType
Description copied from interface:RJsonBucketReturns type of element specified by JSONPath- Specified by:
getTypein interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- type of element
-
getTypeAsync
Description copied from interface:RJsonBucketAsyncReturns type of element specified by JSONPath- Specified by:
getTypeAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- type of element
-
delete
Description copied from interface:RJsonBucketDeletes JSON elements specified by JSONPath- Specified by:
deletein interfaceRJsonBucket<V>- Parameters:
path- JSON path- Returns:
- number of deleted elements
-
deleteAsync
Description copied from interface:RJsonBucketAsyncDeletes JSON elements specified by JSONPath- Specified by:
deleteAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON path- Returns:
- number of deleted elements
-
merge
Description copied from interface:RJsonBucketMerges object into element by the specified JSONPath.- Specified by:
mergein interfaceRJsonBucket<V>- Parameters:
path- JSON pathvalue- value to merge
-
mergeAsync
Description copied from interface:RJsonBucketAsyncMerges object into element by the specified JSONPath.- Specified by:
mergeAsyncin interfaceRJsonBucketAsync<V>- Parameters:
path- JSON pathvalue- value to merge
-
expire
Description copied from interface:RExpirableUseRExpirable.expire(Duration)instead- Specified by:
expirein interfaceRExpirable- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Duration)instead- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAt
public boolean expireAt(long timestamp) Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets an expiration date for this object. When expire date comes the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
instant- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets a timeout for this object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAt
Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
clearExpire
public boolean clearExpire()Description copied from interface:RExpirableClear an expire timeout or expire date for object.- Specified by:
clearExpirein interfaceRExpirable- Returns:
trueif timeout was removedfalseif object does not exist or does not have an associated timeout
-
clearExpireAsync
Description copied from interface:RExpirableAsyncClear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsyncin interfaceRExpirableAsync- Returns:
trueif the timeout was cleared andfalseif not
-
remainTimeToLive
public long remainTimeToLive()Description copied from interface:RExpirableRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLivein interfaceRExpirable- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
remainTimeToLiveAsync
Description copied from interface:RExpirableAsyncRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsyncin interfaceRExpirableAsync- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
getExpireTime
public long getExpireTime()Description copied from interface:RExpirableExpiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimein interfaceRExpirable- Returns:
- expiration time
-
getExpireTimeAsync
Description copied from interface:RExpirableAsyncExpiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimeAsyncin interfaceRExpirableAsync- Returns:
- expiration time
-
expireAsync
-
expireAtAsync
-
clearExpireAsync
-