Class RedissonGeo<V>
- Type Parameters:
V
- value
- All Implemented Interfaces:
Iterable<V>
,RExpirable
,RExpirableAsync
,RGeo<V>
,RGeoAsync<V>
,RObject
,RObjectAsync
,RScoredSortedSet<V>
,RScoredSortedSetAsync<V>
,RSortable<Set<V>>
,RSortableAsync<Set<V>>
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.redisson.api.RScoredSortedSet
RScoredSortedSet.Aggregate
-
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name
-
Constructor Summary
ConstructorDescriptionRedissonGeo
(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson) RedissonGeo
(CommandAsyncExecutor connectionManager, String name, RedissonClient redisson) -
Method Summary
Modifier and TypeMethodDescriptionlong
Adds geospatial member.long
Adds geospatial members.Adds geospatial member.Adds geospatial members.addIfExists
(double longitude, double latitude, V member) Adds geospatial member only if it's already exists.long
addIfExists
(GeoEntry... entries) Adds geospatial members only if it's already exists.addIfExistsAsync
(double longitude, double latitude, V member) Adds geospatial member only if it's already exists.addIfExistsAsync
(GeoEntry... entries) Adds geospatial members only if it's already exists.boolean
Clear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync
(String... keys) Returns distance between members inGeoUnit
units.Returns distance between members inGeoUnit
units.boolean
UseRExpirable.expire(Duration)
insteadboolean
Sets a timeout for this object.boolean
Sets 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.boolean
expireAt
(long timestamp) UseRExpirable.expire(Instant)
insteadboolean
UseRExpirable.expire(Instant)
insteadexpireAtAsync
(long timestamp) UseRExpirableAsync.expireAsync(Instant)
insteadexpireAtAsync
(long timestamp, String param, String... keys) expireAtAsync
(Date timestamp) UseRExpirableAsync.expireAsync(Instant)
insteadboolean
expireIfGreater
(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.boolean
expireIfGreater
(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.boolean
expireIfLess
(Duration duration) Sets a timeout for this object only if it's less than timeout set before.boolean
expireIfLess
(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.boolean
expireIfNotSet
(Duration duration) Sets a timeout for this object only if it hasn't been set before.boolean
expireIfNotSet
(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.boolean
expireIfSet
(Duration duration) Sets a timeout for this object only if it has been already set.boolean
expireIfSet
(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.long
Expiration time of Redisson object that has a timeoutExpiration time of Redisson object that has a timeoutReturns 11 characters long Geohash string mapped by defined member.Returns 11 characters Geohash string mapped by defined member.Returns geo-position mapped by defined member.Returns geo-position mapped by defined member.radius
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusAsync
(V member, double radius, GeoUnit geoUnit) radiusAsync
(V member, double radius, GeoUnit geoUnit, int count) radiusAsync
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusAsync
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) long
radiusStoreSortedTo
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) long
radiusStoreSortedTo
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) long
radiusStoreSortedTo
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) long
radiusStoreSortedTo
(String destName, V member, double radius, GeoUnit geoUnit) long
radiusStoreSortedTo
(String destName, V member, double radius, GeoUnit geoUnit, int count) long
radiusStoreSortedTo
(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreSortedToAsync
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) radiusStoreSortedToAsync
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusStoreSortedToAsync
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreSortedToAsync
(String destName, V member, double radius, GeoUnit geoUnit) radiusStoreSortedToAsync
(String destName, V member, double radius, GeoUnit geoUnit, int count) radiusStoreSortedToAsync
(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) long
radiusStoreTo
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) long
radiusStoreTo
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) long
radiusStoreTo
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) long
radiusStoreTo
(String destName, V member, double radius, GeoUnit geoUnit) long
radiusStoreTo
(String destName, V member, double radius, GeoUnit geoUnit, int count) long
radiusStoreTo
(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreToAsync
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) radiusStoreToAsync
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusStoreToAsync
(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreToAsync
(String destName, V member, double radius, GeoUnit geoUnit) radiusStoreToAsync
(String destName, V member, double radius, GeoUnit geoUnit, int count) radiusStoreToAsync
(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistance
(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithDistance
(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithDistance
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistance
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistance
(V member, double radius, GeoUnit geoUnit) radiusWithDistance
(V member, double radius, GeoUnit geoUnit, int count) radiusWithDistance
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistance
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistanceAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithDistanceAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithDistanceAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistanceAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistanceAsync
(V member, double radius, GeoUnit geoUnit) radiusWithDistanceAsync
(V member, double radius, GeoUnit geoUnit, int count) radiusWithDistanceAsync
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistanceAsync
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPosition
(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithPosition
(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithPosition
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPosition
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPosition
(V member, double radius, GeoUnit geoUnit) radiusWithPosition
(V member, double radius, GeoUnit geoUnit, int count) radiusWithPosition
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPosition
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPositionAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithPositionAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithPositionAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPositionAsync
(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPositionAsync
(V member, double radius, GeoUnit geoUnit) radiusWithPositionAsync
(V member, double radius, GeoUnit geoUnit, int count) radiusWithPositionAsync
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPositionAsync
(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) long
Remaining time to live of Redisson object that has a timeoutRemaining time to live of Redisson object that has a timeoutsearch
(GeoSearchArgs args) Returns the members of a sorted set, which are within the borders of specified search conditions.searchAsync
(GeoSearchArgs args) Returns the members of a sorted set, which are within the borders of specified search conditions.Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.long
storeSearchTo
(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.storeSearchToAsync
(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.long
storeSortedSearchTo
(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.storeSortedSearchToAsync
(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.boolean
Adds geospatial member only if has not been added before.long
Adds geospatial members only if has not been added before.tryAddAsync
(double longitude, double latitude, V member) Adds geospatial member only if has not been added before.tryAddAsync
(GeoEntry... entries) Adds geospatial members only if has not been added before.Methods inherited from class org.redisson.RedissonScoredSortedSet
add, addAll, addAllAsync, addAllIfAbsent, addAllIfAbsentAsync, addAllIfExist, addAllIfExistAsync, addAllIfGreater, addAllIfGreaterAsync, addAllIfLess, addAllIfLessAsync, addAndGetRank, addAndGetRankAsync, addAndGetRevRank, addAndGetRevRank, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfAbsent, addIfAbsentAsync, addIfExists, addIfExistsAsync, addIfGreater, addIfGreaterAsync, addIfLess, addIfLessAsync, addListener, addListenerAsync, addScore, addScoreAndGetRank, addScoreAndGetRankAsync, addScoreAndGetRevRank, addScoreAndGetRevRankAsync, addScoreAsync, clear, contains, containsAll, containsAllAsync, containsAsync, count, countAsync, countIntersection, countIntersection, countIntersectionAsync, countIntersectionAsync, diff, diffAsync, distributedIterator, distributedIterator, distributedIterator, entryIterator, entryIterator, entryIterator, entryIterator, entryRange, entryRange, entryRange, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversed, entryRangeReversed, entryRangeReversed, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryScanIteratorAsync, first, firstAsync, firstEntry, firstEntryAsync, firstScore, firstScoreAsync, getScore, getScore, getScoreAsync, getScoreAsync, intersection, intersection, intersection, intersection, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, isEmpty, iterator, iterator, iterator, iterator, last, lastAsync, lastEntry, lastEntryAsync, lastScore, lastScoreAsync, mapReduce, pollFirst, pollFirst, pollFirst, pollFirst, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstEntries, pollFirstEntries, pollFirstEntriesAsync, pollFirstEntriesAsync, pollFirstEntriesFromAny, pollFirstEntriesFromAny, pollFirstEntriesFromAnyAsync, pollFirstEntriesFromAnyAsync, pollFirstEntry, pollFirstEntryAsync, pollFirstFromAny, pollFirstFromAny, pollFirstFromAny, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollLast, pollLast, pollLast, pollLast, pollLastAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastEntries, pollLastEntries, pollLastEntriesAsync, pollLastEntriesAsync, pollLastEntriesFromAny, pollLastEntriesFromAny, pollLastEntriesFromAnyAsync, pollLastEntriesFromAnyAsync, pollLastEntry, pollLastEntryAsync, pollLastFromAny, pollLastFromAny, pollLastFromAny, pollLastFromAnyAsync, pollLastFromAnyAsync, pollLastFromAnyAsync, random, random, randomAsync, randomAsync, randomEntries, randomEntriesAsync, rangeTo, rangeTo, rangeTo, rangeToAsync, rangeToAsync, rangeToAsync, rank, rankAsync, rankEntry, rankEntryAsync, readAll, readAllAsync, readDiff, readDiffAsync, readIntersection, readIntersection, readIntersection, readIntersection, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readUnion, readUnion, readUnion, readUnion, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, remove, removeAll, removeAllAsync, removeAsync, removeListener, removeListenerAsync, removeRangeByRank, removeRangeByRankAsync, removeRangeByScore, removeRangeByScoreAsync, replace, replaceAsync, retainAll, retainAllAsync, revRangeTo, revRangeTo, revRangeTo, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRank, revRank, revRankAsync, revRankAsync, revRankEntry, revRankEntryAsync, scanIteratorAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnLastElements, takeFirst, takeFirstAsync, takeLast, takeLastAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, unsubscribe, value, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsync
Methods inherited from class org.redisson.RedissonObject
addListener, addListenerAsync, copy, copyAsync, delete, deleteAsync, 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, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsync
Methods 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, unlink
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
Methods inherited from interface org.redisson.api.RScoredSortedSet
add, addAll, addAllIfAbsent, addAllIfExist, addAllIfGreater, addAllIfLess, addAndGetRank, addAndGetRevRank, addAndGetRevRank, addIfAbsent, addIfExists, addIfGreater, addIfLess, addListener, addScore, addScoreAndGetRank, addScoreAndGetRevRank, clear, contains, containsAll, count, countIntersection, countIntersection, diff, distributedIterator, distributedIterator, distributedIterator, entryIterator, entryIterator, entryIterator, entryIterator, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstEntry, firstScore, getScore, getScore, intersection, intersection, intersection, intersection, isEmpty, iterator, iterator, iterator, last, lastEntry, lastScore, mapReduce, pollFirst, pollFirst, pollFirst, pollFirst, pollFirstEntries, pollFirstEntries, pollFirstEntriesFromAny, pollFirstEntriesFromAny, pollFirstEntry, pollFirstFromAny, pollFirstFromAny, pollFirstFromAny, pollLast, pollLast, pollLast, pollLast, pollLastEntries, pollLastEntries, pollLastEntriesFromAny, pollLastEntriesFromAny, pollLastEntry, pollLastFromAny, pollLastFromAny, pollLastFromAny, random, random, randomEntries, rangeTo, rangeTo, rangeTo, rank, rankEntry, readAll, readDiff, readIntersection, readIntersection, readIntersection, readIntersection, readUnion, readUnion, readUnion, readUnion, remove, removeAll, removeRangeByRank, removeRangeByScore, replace, retainAll, revRangeTo, revRangeTo, revRangeTo, revRank, revRank, revRankEntry, size, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnLastElements, takeFirst, takeLast, toArray, toArray, tryAdd, union, union, union, union, unsubscribe, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
Methods inherited from interface org.redisson.api.RScoredSortedSetAsync
addAllAsync, addAllIfAbsentAsync, addAllIfExistAsync, addAllIfGreaterAsync, addAllIfLessAsync, addAndGetRankAsync, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfAbsentAsync, addIfExistsAsync, addIfGreaterAsync, addIfLessAsync, addScoreAndGetRankAsync, addScoreAndGetRevRankAsync, addScoreAsync, containsAllAsync, containsAsync, countAsync, countIntersectionAsync, countIntersectionAsync, diffAsync, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, firstAsync, firstEntryAsync, firstScoreAsync, getScoreAsync, getScoreAsync, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, lastAsync, lastEntryAsync, lastScoreAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstEntriesAsync, pollFirstEntriesAsync, pollFirstEntriesFromAnyAsync, pollFirstEntriesFromAnyAsync, pollFirstEntryAsync, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastEntriesAsync, pollLastEntriesAsync, pollLastEntriesFromAnyAsync, pollLastEntriesFromAnyAsync, pollLastEntryAsync, pollLastFromAnyAsync, pollLastFromAnyAsync, pollLastFromAnyAsync, randomAsync, randomAsync, randomEntriesAsync, rangeToAsync, rangeToAsync, rangeToAsync, rankAsync, rankEntryAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, removeAllAsync, removeAsync, removeRangeByRankAsync, removeRangeByScoreAsync, replaceAsync, retainAllAsync, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRankAsync, revRankAsync, revRankEntryAsync, sizeAsync, takeFirstAsync, takeLastAsync, tryAddAsync, unionAsync, unionAsync, unionAsync, unionAsync, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsync
Methods inherited from interface org.redisson.api.RSortable
readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
Methods inherited from interface org.redisson.api.RSortableAsync
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
-
Constructor Details
-
RedissonGeo
-
RedissonGeo
public RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
-
-
Method Details
-
addAsync
Description copied from interface:RGeoAsync
Adds geospatial member. -
add
Description copied from interface:RGeo
Adds geospatial member. -
add
Description copied from interface:RGeo
Adds geospatial members. -
addAsync
Description copied from interface:RGeoAsync
Adds geospatial members. -
addIfExists
Description copied from interface:RGeo
Adds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExists
in interfaceRGeo<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExists
Description copied from interface:RGeo
Adds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExists
in interfaceRGeo<V>
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
addIfExistsAsync
Description copied from interface:RGeoAsync
Adds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExistsAsync
Description copied from interface:RGeoAsync
Adds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsync
in interfaceRGeoAsync<V>
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
tryAdd
Description copied from interface:RGeo
Adds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAdd
Description copied from interface:RGeo
Adds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAddAsync
Description copied from interface:RGeoAsync
Adds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsync
in interfaceRGeoAsync<V>
- Parameters:
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itself- Returns:
- number of elements added to the sorted set
-
tryAddAsync
Description copied from interface:RGeoAsync
Adds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsync
in interfaceRGeoAsync<V>
- Parameters:
entries
- - objects- Returns:
- number of elements added to the sorted set
-
dist
Description copied from interface:RGeo
Returns distance between members inGeoUnit
units. -
distAsync
Description copied from interface:RGeoAsync
Returns distance between members inGeoUnit
units. -
hash
Description copied from interface:RGeo
Returns 11 characters long Geohash string mapped by defined member. -
hashAsync
Description copied from interface:RGeoAsync
Returns 11 characters Geohash string mapped by defined member. -
pos
Description copied from interface:RGeo
Returns geo-position mapped by defined member. -
posAsync
Description copied from interface:RGeoAsync
Returns geo-position mapped by defined member. -
search
Description copied from interface:RGeo
Returns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
-
searchAsync
Description copied from interface:RGeoAsync
Returns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
RFuture objects = geo.searchAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
RFuture objects = geo.searchAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- list of memebers
-
searchWithDistance
Description copied from interface:RGeo
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithDistance
in interfaceRGeo<V>
- Parameters:
args
- - search conditions object- Returns:
- distance mapped by object
-
searchWithDistanceAsync
Description copied from interface:RGeoAsync
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
RFuture objects = geo.searchWithDistanceAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
RFuture objects = geo.searchWithDistanceAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithDistanceAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- distance mapped by object
-
searchWithPosition
Description copied from interface:RGeo
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithPosition
in interfaceRGeo<V>
- Parameters:
args
- - search conditions object- Returns:
- position mapped by object
-
searchWithPositionAsync
Description copied from interface:RGeoAsync
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
Requires Redis 3.2.10 and higher.
- Specified by:
searchWithPositionAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- position mapped by object
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
storeSearchTo
Description copied from interface:RGeo
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSearchTo
in interfaceRGeo<V>
- Parameters:
args
- - search conditions object- Returns:
- length of result
-
storeSearchToAsync
Description copied from interface:RGeoAsync
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSearchToAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
storeSortedSearchTo
Description copied from interface:RGeo
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
sorted by distance.Usage examples:
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSortedSearchTo
in interfaceRGeo<V>
- Parameters:
args
- - search conditions object- Returns:
- length of result
-
storeSortedSearchToAsync
Description copied from interface:RGeoAsync
Finds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName
sorted by distance.Usage examples:
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));
- Specified by:
storeSortedSearchToAsync
in interfaceRGeoAsync<V>
- Parameters:
args
- - search conditions object- Returns:
- length of result
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
expire
Description copied from interface:RExpirable
UseRExpirable.expire(Duration)
instead- Specified by:
expire
in interfaceRExpirable
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
Description copied from interface:RExpirableAsync
UseRExpirableAsync.expireAsync(Duration)
instead- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(long timestamp) Description copied from interface:RExpirable
UseRExpirable.expire(Instant)
instead- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
Description copied from interface:RExpirableAsync
UseRExpirableAsync.expireAsync(Instant)
instead- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expire
Description copied from interface:RExpirable
Sets an expiration date for this object. When expire date comes the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
instant
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSet
Description copied from interface:RExpirable
Sets 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:
expireIfSet
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfSetAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSet
Description copied from interface:RExpirable
Sets 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:
expireIfNotSet
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfNotSetAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreater
Description copied from interface:RExpirable
Sets 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:
expireIfGreater
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfGreaterAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLess
Description copied from interface:RExpirable
Sets 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:
expireIfLess
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLessAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfLessAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
Description copied from interface:RExpirableAsync
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
instant
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expire
Description copied from interface:RExpirable
Sets a timeout for this object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
Description copied from interface:RExpirableAsync
Set a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
Description copied from interface:RExpirable
UseRExpirable.expire(Instant)
instead- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
Description copied from interface:RExpirableAsync
UseRExpirableAsync.expireAsync(Instant)
instead- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSet
Description copied from interface:RExpirable
Sets 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:
expireIfSet
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfSetAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSet
Description copied from interface:RExpirable
Sets 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:
expireIfNotSet
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfNotSetAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreater
Description copied from interface:RExpirable
Sets 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:
expireIfGreater
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfGreaterAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLess
Description copied from interface:RExpirable
Sets 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:
expireIfLess
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLessAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfLessAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
clearExpire
public boolean clearExpire()Description copied from interface:RExpirable
Clear an expire timeout or expire date for object.- Specified by:
clearExpire
in interfaceRExpirable
- Returns:
true
if timeout was removedfalse
if object does not exist or does not have an associated timeout
-
clearExpireAsync
Description copied from interface:RExpirableAsync
Clear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsync
in interfaceRExpirableAsync
- Returns:
true
if the timeout was cleared andfalse
if not
-
remainTimeToLive
public long remainTimeToLive()Description copied from interface:RExpirable
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLive
in 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:RExpirableAsync
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsync
in 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:RExpirable
Expiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTime
in interfaceRExpirable
- Returns:
- expiration time
-
getExpireTimeAsync
Description copied from interface:RExpirableAsync
Expiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimeAsync
in interfaceRExpirableAsync
- Returns:
- expiration time
-
expireAsync
-
expireAtAsync
-
clearExpireAsync
-