Class RedissonGeo<V>
-
- org.redisson.RedissonObject
-
- org.redisson.RedissonScoredSortedSet<V>
-
- org.redisson.RedissonGeo<V>
-
- Type Parameters:
V
- value
- All Implemented Interfaces:
<V>
,<V>>
,<V>>
public class RedissonGeo<V> extends RedissonScoredSortedSet<V> implements RGeo<V>
Geospatial items holder- 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
Constructors Constructor Description RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, name, RedissonClient redisson)
RedissonGeo(CommandAsyncExecutor connectionManager, name, RedissonClient redisson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
add(double longitude, double latitude, V member)
Adds geospatial member.long
add(GeoEntry... entries)
Adds geospatial members.>
addAsync(double longitude, double latitude, V member)
Adds geospatial member.>
addAsync(GeoEntry... entries)
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
clearExpire()
Clear an expire timeout or expire date for object.>
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.protected >
... keys)
dist(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.>
distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
Returns distance between members inGeoUnit
units.boolean
expire(long timeToLive, timeUnit)
Set a timeout for object.boolean
instant)
Set an expire date for object.>
expireAsync(long timeToLive, timeUnit)
Set a timeout for object in async mode.protected >
expireAsync(long timeToLive, timeUnit, ... keys)
>
instant)
Set an expire date for object.boolean
expireAt(long timestamp)
UseRExpirable.expire(Instant)
insteadboolean
timestamp)
UseRExpirable.expire(Instant)
instead>
expireAtAsync(long timestamp)
UseRExpirableAsync.expireAsync(Instant)
insteadprotected >
expireAtAsync(long timestamp, ... keys)
>
timestamp)
UseRExpirableAsync.expireAsync(Instant)
instead<>
hash(V... members)
Returns 11 characters long Geohash string mapped by defined member.<>>
hashAsync(V... members)
Returns 11 characters Geohash string mapped by defined member.<V,GeoPosition>
pos(V... members)
Returns geo-position mapped by defined member.<V,GeoPosition>>
posAsync(V... members)
Returns geo-position mapped by defined member.<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V>
radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
<V>
radius(V member, double radius, GeoUnit geoUnit)
<V>
radius(V member, double radius, GeoUnit geoUnit, int count)
<V>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V>
radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V>>
radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit)
<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V>>
radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
long
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
long
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
destName, V member, double radius, GeoUnit geoUnit)
long
destName, V member, double radius, GeoUnit geoUnit, int count)
long
destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
>
destName, V member, double radius, GeoUnit geoUnit)
>
destName, V member, double radius, GeoUnit geoUnit, int count)
>
destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
long
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
long
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
destName, V member, double radius, GeoUnit geoUnit)
long
destName, V member, double radius, GeoUnit geoUnit, int count)
long
destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
>
destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
>
destName, V member, double radius, GeoUnit geoUnit)
>
destName, V member, double radius, GeoUnit geoUnit, int count)
>
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)
<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V,GeoPosition>
radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit)
<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V,GeoPosition>
radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V,GeoPosition>>
radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
<V,GeoPosition>>
radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
long
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout>
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout<V>
search(GeoSearchArgs args)
Returns the members of a sorted set, which are within the borders of specified search conditions.<V>>
searchAsync(GeoSearchArgs args)
Returns the members of a sorted set, which are within the borders of specified search conditions.<>
searchWithDistance(GeoSearchArgs args)
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.<>>
searchWithDistanceAsync(GeoSearchArgs args)
Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.<V,GeoPosition>
searchWithPosition(GeoSearchArgs args)
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.<V,GeoPosition>>
searchWithPositionAsync(GeoSearchArgs args)
Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.long
destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.>
destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.long
destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.>
destName, GeoSearchArgs args)
Finds the members of a sorted set, which are within the borders of specified search conditions.boolean
tryAdd(double longitude, double latitude, V member)
Adds geospatial member only if has not been added before.long
tryAdd(GeoEntry... entries)
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, addAndGetRank, addAndGetRankAsync, addAndGetRevRank, addAndGetRevRank, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfExists, addIfExistsAsync, addIfGreater, addIfGreaterAsync, addIfLess, addIfLessAsync, addListener, addListenerAsync, addScore, addScoreAndGetRank, addScoreAndGetRankAsync, addScoreAndGetRevRank, addScoreAndGetRevRankAsync, addScoreAsync, clear, contains, containsAll, containsAllAsync, containsAsync, count, countAsync, diff, diffAsync, entryRange, entryRange, entryRange, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversed, entryRangeReversed, entryRangeReversed, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, first, firstAsync, firstScore, firstScoreAsync, getScore, getScore, getScoreAsync, getScoreAsync, intersection, intersection, intersection, intersection, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, isEmpty, iterator, iterator, iterator, iterator, last, lastAsync, lastScore, lastScoreAsync, mapReduce, pollFirst, pollFirst, pollFirst, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstFromAny, pollFirstFromAnyAsync, pollLast, pollLast, pollLast, pollLastAsync, pollLastAsync, pollLastAsync, pollLastFromAny, pollLastFromAnyAsync, random, random, randomAsync, randomAsync, randomEntries, randomEntriesAsync, rangeTo, rangeTo, rangeTo, rangeToAsync, rangeToAsync, rangeToAsync, rank, rankAsync, 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, retainAll, retainAllAsync, revRangeTo, revRangeTo, revRangeTo, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRank, revRank, revRankAsync, revRankAsync, 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, 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, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListenersAsync, 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 interface org.redisson.api.RExpirable
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObject
addListener, 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, addAndGetRank, addAndGetRevRank, addAndGetRevRank, addIfExists, addIfGreater, addIfLess, addScore, addScoreAndGetRank, addScoreAndGetRevRank, clear, contains, containsAll, count, diff, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, getScore, intersection, intersection, intersection, intersection, isEmpty, iterator, iterator, iterator, last, lastScore, mapReduce, pollFirst, pollFirst, pollFirst, pollFirstFromAny, pollLast, pollLast, pollLast, pollLastFromAny, random, random, randomEntries, rangeTo, rangeTo, rangeTo, rank, readAll, readDiff, readIntersection, readIntersection, readIntersection, readIntersection, readUnion, readUnion, readUnion, readUnion, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, revRangeTo, revRangeTo, revRangeTo, revRank, revRank, 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, addAndGetRankAsync, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfExistsAsync, addIfGreaterAsync, addIfLessAsync, addScoreAndGetRankAsync, addScoreAndGetRevRankAsync, addScoreAsync, containsAllAsync, containsAsync, countAsync, diffAsync, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, firstAsync, firstScoreAsync, getScoreAsync, getScoreAsync, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, lastAsync, lastScoreAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstFromAnyAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastFromAnyAsync, randomAsync, randomAsync, randomEntriesAsync, rangeToAsync, rangeToAsync, rangeToAsync, rankAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, removeAllAsync, removeAsync, removeRangeByRankAsync, removeRangeByScoreAsync, retainAllAsync, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRankAsync, revRankAsync, 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 Detail
-
RedissonGeo
public RedissonGeo(CommandAsyncExecutor connectionManager, name, RedissonClient redisson)
-
RedissonGeo
public RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, name, RedissonClient redisson)
-
-
Method Detail
-
addAsync
public > addAsync(double longitude, double latitude, V member)
Description copied from interface:RGeoAsync
Adds geospatial member.
-
add
public long add(double longitude, double latitude, V member)
Description copied from interface:RGeo
Adds geospatial member.
-
add
public long add(GeoEntry... entries)
Description copied from interface:RGeo
Adds geospatial members.
-
addAsync
public > addAsync(GeoEntry... entries)
Description copied from interface:RGeoAsync
Adds geospatial members.
-
addIfExists
public addIfExists(double longitude, double latitude, V member)
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
public long addIfExists(GeoEntry... entries)
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
public > addIfExistsAsync(double longitude, double latitude, V member)
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
public > addIfExistsAsync(GeoEntry... entries)
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
public boolean tryAdd(double longitude, double latitude, V member)
Description copied from interface:RGeo
Adds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAdd
public long tryAdd(GeoEntry... entries)
Description copied from interface:RGeo
Adds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAddAsync
public > tryAddAsync(double longitude, double latitude, V member)
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
public > tryAddAsync(GeoEntry... entries)
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
public dist(V firstMember, V secondMember, GeoUnit geoUnit)
Description copied from interface:RGeo
Returns distance between members inGeoUnit
units.
-
distAsync
public > distAsync(V firstMember, V secondMember, GeoUnit geoUnit)
Description copied from interface:RGeoAsync
Returns distance between members inGeoUnit
units.
-
hash
public <> hash(V... members)
Description copied from interface:RGeo
Returns 11 characters long Geohash string mapped by defined member.
-
hashAsync
public <>> hashAsync(V... members)
Description copied from interface:RGeoAsync
Returns 11 characters Geohash string mapped by defined member.
-
pos
public <V,GeoPosition> pos(V... members)
Description copied from interface:RGeo
Returns geo-position mapped by defined member.
-
posAsync
public <V,GeoPosition>> posAsync(V... members)
Description copied from interface:RGeoAsync
Returns geo-position mapped by defined member.
-
search
public <V> search(GeoSearchArgs args)
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
public <V>> searchAsync(GeoSearchArgs args)
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
public <> searchWithDistance(GeoSearchArgs args)
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
public <>> searchWithDistanceAsync(GeoSearchArgs args)
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
public <V,GeoPosition> searchWithPosition(GeoSearchArgs args)
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
public <V,GeoPosition>> searchWithPositionAsync(GeoSearchArgs args)
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
-
radiusAsync
public <V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public <V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
-
radiusAsync
public <V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public <V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
-
radiusAsync
public <V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radius
public <V> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
-
radiusAsync
public <V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public <V>> radiusAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public <V>> radiusAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public <V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusAsync
public <V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithDistance
public <> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistance
in interfaceRGeo<V>
-
radiusWithDistanceAsync
public <>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithDistanceAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusWithPosition
public <V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPosition
in interfaceRGeo<V>
-
radiusWithPositionAsync
public <V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusWithPositionAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public > radiusStoreToAsync( destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
storeSearchTo
public long storeSearchTo( destName, GeoSearchArgs args)
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>
args
- - search conditions object- Returns:
- length of result
-
storeSearchToAsync
public > storeSearchToAsync( destName, GeoSearchArgs args)
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>
args
- - search conditions object- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public > radiusStoreToAsync( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public > radiusStoreToAsync( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo( destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public > radiusStoreToAsync( destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo( destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public > radiusStoreToAsync( destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo( destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreTo
in interfaceRGeo<V>
-
radiusStoreToAsync
public > radiusStoreToAsync( destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreToAsync
in interfaceRGeoAsync<V>
-
storeSortedSearchTo
public long storeSortedSearchTo( destName, GeoSearchArgs args)
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>
args
- - search conditions object- Returns:
- length of result
-
storeSortedSearchToAsync
public > storeSortedSearchToAsync( destName, GeoSearchArgs args)
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>
args
- - search conditions object- Returns:
- length of result
-
radiusStoreSortedToAsync
public > radiusStoreSortedToAsync( destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public > radiusStoreSortedToAsync( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public > radiusStoreSortedToAsync( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public > radiusStoreSortedToAsync( destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public > radiusStoreSortedToAsync( destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public > radiusStoreSortedToAsync( destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedToAsync
in interfaceRGeoAsync<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo( destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo( destName, V member, double radius, GeoUnit geoUnit)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo( destName, V member, double radius, GeoUnit geoUnit, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo( destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
- Specified by:
radiusStoreSortedTo
in interfaceRGeo<V>
-
expire
public boolean expire(long timeToLive, timeUnit)
Description copied from interface:RExpirable
Set a timeout for object. After the timeout has expired, the key will automatically be deleted.- 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
public > expireAsync(long timeToLive, timeUnit)
Description copied from interface:RExpirableAsync
Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.- 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
public > expireAtAsync(long timestamp)
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
public boolean expire( instant)
Description copied from interface:RExpirable
Set an expire date for 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
-
expireAsync
public > expireAsync( instant)
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
-
expireAt
public boolean expireAt( timestamp)
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
public > expireAtAsync( timestamp)
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
-
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
public > 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
public > 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.
-
expireAsync
protected > expireAsync(long timeToLive, timeUnit, ... keys)
-
expireAtAsync
protected > expireAtAsync(long timestamp, ... keys)
-
clearExpireAsync
protected > clearExpireAsync(... keys)
-
-