V
- value typeRExpirableReactive
, RGeoReactive<V>
, RObjectReactive
, RScoredSortedSetReactive<V>
, RSortableReactive<Set<V>>
public class RedissonGeoReactive<V> extends RedissonScoredSortedSetReactive<V> implements RGeoReactive<V>
Constructor | Description |
---|---|
RedissonGeoReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
|
RedissonGeoReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name,
RGeoAsync<V> instance) |
|
RedissonGeoReactive(CommandReactiveExecutor commandExecutor,
String name) |
|
RedissonGeoReactive(CommandReactiveExecutor commandExecutor,
String name,
RGeoAsync<V> instance) |
Modifier and Type | Method | Description |
---|---|---|
org.reactivestreams.Publisher<Long> |
add(double longitude,
double latitude,
V member) |
Adds geospatial member.
|
org.reactivestreams.Publisher<Long> |
add(GeoEntry... entries) |
Adds geospatial members.
|
org.reactivestreams.Publisher<Boolean> |
clearExpire() |
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Void> |
copy(String host,
int port,
int database,
long timeout) |
Copy object from source Redis instance to destination Redis instance
|
org.reactivestreams.Publisher<Boolean> |
delete() |
Delete object in mode
|
org.reactivestreams.Publisher<Double> |
dist(V firstMember,
V secondMember,
GeoUnit geoUnit) |
Returns distance between members in
GeoUnit units. |
org.reactivestreams.Publisher<byte[]> |
dump() |
Returns dump of object
|
protected io.netty.buffer.ByteBuf |
encode(Object value) |
|
protected void |
encode(Collection<Object> params,
Collection<?> values) |
|
protected io.netty.buffer.ByteBuf |
encodeMapKey(Object value) |
|
protected io.netty.buffer.ByteBuf |
encodeMapValue(Object value) |
|
org.reactivestreams.Publisher<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit) |
Set a timeout for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp) |
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(Date timestamp) |
Set an expire date for object in mode.
|
Codec |
getCodec() |
|
String |
getName() |
|
org.reactivestreams.Publisher<Map<V,String>> |
hash(V... members) |
Returns 11 characters Geohash string mapped by defined member.
|
org.reactivestreams.Publisher<Boolean> |
isExists() |
Check object existence
|
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database,
long timeout) |
Transfer a object from a source Redis instance to a destination Redis instance
in mode
|
org.reactivestreams.Publisher<Boolean> |
move(int database) |
Move object to another database in mode
|
protected <V> reactor.core.publisher.Mono<V> |
newSucceeded(V result) |
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
pos(V... members) |
Returns geo-position mapped by defined member.
|
org.reactivestreams.Publisher<List<V>> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit) |
Returns the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units. |
org.reactivestreams.Publisher<List<V>> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
Returns the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units and limited by count |
org.reactivestreams.Publisher<List<V>> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
Returns the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units with GeoOrder |
org.reactivestreams.Publisher<List<V>> |
radius(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Returns the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units with GeoOrder
and limited by count |
org.reactivestreams.Publisher<List<V>> |
radius(V member,
double radius,
GeoUnit geoUnit) |
Returns the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units. |
org.reactivestreams.Publisher<List<V>> |
radius(V member,
double radius,
GeoUnit geoUnit,
int count) |
Returns the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units and limited by count |
org.reactivestreams.Publisher<List<V>> |
radius(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
Returns the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units with GeoOrder |
org.reactivestreams.Publisher<List<V>> |
radius(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Returns the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units with GeoOrder |
org.reactivestreams.Publisher<Long> |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit) |
Finds the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units. |
org.reactivestreams.Publisher<Long> |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
Finds the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units and limited by count
Store result to destName . |
org.reactivestreams.Publisher<Long> |
radiusStoreTo(String destName,
double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Finds the members of a sorted set, which are within the
borders of the area specified with the center location
and the maximum distance from the center (the radius)
in
GeoUnit units with GeoOrder
and limited by count
Store result to destName . |
org.reactivestreams.Publisher<Long> |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit) |
Finds the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units. |
org.reactivestreams.Publisher<Long> |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
int count) |
Finds the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units and limited by count
Store result to destName . |
org.reactivestreams.Publisher<Long> |
radiusStoreTo(String destName,
V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Finds the members of a sorted set, which are within the
borders of the area specified with the defined member location
and the maximum distance from the defined member location (the radius)
in
GeoUnit units with GeoOrder
Store result to destName . |
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit) |
Returns the distance mapped by member, distance between member and the location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
Returns the distance mapped by member, distance between member and the location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
Returns the distance mapped by member, distance between member and the location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Returns the distance mapped by member, distance between member and the location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit) |
Returns the distance mapped by member, distance between member and the defined member location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
int count) |
Returns the distance mapped by member, distance between member and the defined member location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
Returns the distance mapped by member, distance between member and the defined member location.
|
org.reactivestreams.Publisher<Map<V,Double>> |
radiusWithDistance(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Returns the distance mapped by member, distance between member and the defined member location.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
int count) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(double longitude,
double latitude,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
int count) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder) |
Returns the geo-position mapped by member.
|
org.reactivestreams.Publisher<Map<V,GeoPosition>> |
radiusWithPosition(V member,
double radius,
GeoUnit geoUnit,
GeoOrder geoOrder,
int count) |
Returns the geo-position mapped by member.
|
<R> org.reactivestreams.Publisher<R> |
reactive(Supplier<RFuture<R>> supplier) |
|
org.reactivestreams.Publisher<Long> |
remainTimeToLive() |
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Void> |
rename(String newName) |
Rename current object key to
newName
in mode |
org.reactivestreams.Publisher<Boolean> |
renamenx(String newName) |
Rename current object key to
newName
in mode only if new key is not exists |
org.reactivestreams.Publisher<Void> |
restore(byte[] state) |
Restores object using its state returned by
RObjectReactive.dump() method. |
org.reactivestreams.Publisher<Void> |
restore(byte[] state,
long timeToLive,
TimeUnit timeUnit) |
Restores object using its state returned by
RObjectReactive.dump() method and set time to live for it. |
org.reactivestreams.Publisher<Void> |
restoreAndReplace(byte[] state) |
Restores and replaces object if it already exists.
|
org.reactivestreams.Publisher<Void> |
restoreAndReplace(byte[] state,
long timeToLive,
TimeUnit timeUnit) |
Restores and replaces object if it already exists and set time to live for it.
|
org.reactivestreams.Publisher<Boolean> |
touch() |
Update the last access time of an object.
|
org.reactivestreams.Publisher<Boolean> |
unlink() |
Delete the objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addAll, addAndGetRank, addAndGetRevRank, addScore, addScoreAndGetRank, addScoreAndGetRevRank, contains, containsAll, count, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, intersection, intersection, intersection, intersection, iterator, iterator, iterator, iterator, last, lastScore, pollFirst, pollFirst, pollFirst, pollFirstFromAny, pollLast, pollLast, pollLast, pollLastFromAny, rank, readAll, readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, revRank, size, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, tryAdd, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
clearExpire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
add, addAll, addAndGetRank, addAndGetRevRank, addScore, addScoreAndGetRank, addScoreAndGetRevRank, contains, containsAll, count, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstScore, getScore, intersection, intersection, intersection, intersection, iterator, iterator, iterator, iterator, last, lastScore, pollFirst, pollFirst, pollFirst, pollFirstFromAny, pollLast, pollLast, pollLast, pollLastFromAny, rank, readAll, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, revRank, size, tryAdd, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversed
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
public RedissonGeoReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonGeoReactive(CommandReactiveExecutor commandExecutor, String name, RGeoAsync<V> instance)
public RedissonGeoReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public RedissonGeoReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name, RGeoAsync<V> instance)
public org.reactivestreams.Publisher<Long> add(double longitude, double latitude, V member)
RGeoReactive
add
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectmember
- - object itselfpublic org.reactivestreams.Publisher<Long> add(GeoEntry... entries)
RGeoReactive
add
in interface RGeoReactive<V>
entries
- - objectspublic org.reactivestreams.Publisher<Double> dist(V firstMember, V secondMember, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.dist
in interface RGeoReactive<V>
firstMember
- - first objectsecondMember
- - second objectgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Map<V,String>> hash(V... members)
RGeoReactive
hash
in interface RGeoReactive<V>
members
- - objectspublic org.reactivestreams.Publisher<Map<V,GeoPosition>> pos(V... members)
RGeoReactive
pos
in interface RGeoReactive<V>
members
- - objectspublic org.reactivestreams.Publisher<List<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.radius
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<List<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by countradius
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<List<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RGeoReactive
GeoUnit
units with GeoOrder
radius
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultpublic org.reactivestreams.Publisher<List<V>> radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
and limited by countradius
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limitpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.radiusWithDistance
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by count.radiusWithDistance
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RGeoReactive
GeoUnit
units with GeoOrder
radiusWithDistance
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
and limited by countradiusWithDistance
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limitpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.radiusWithPosition
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by countradiusWithPosition
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RGeoReactive
GeoUnit
units with GeoOrder
radiusWithPosition
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo orderpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
and limited by countradiusWithPosition
in interface RGeoReactive<V>
longitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limitpublic org.reactivestreams.Publisher<List<V>> radius(V member, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.radius
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<List<V>> radius(V member, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by countradius
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<List<V>> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RGeoReactive
GeoUnit
units with GeoOrder
radius
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo orderpublic org.reactivestreams.Publisher<List<V>> radius(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
radius
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limitpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(V member, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.radiusWithDistance
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by countradiusWithDistance
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RGeoReactive
GeoUnit
units with GeoOrder
radiusWithDistance
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geopublic org.reactivestreams.Publisher<Map<V,Double>> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
and limited by countradiusWithDistance
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geocount
- - result limitpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.radiusWithPosition
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by countradiusWithPosition
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder)
RGeoReactive
GeoUnit
units with GeoOrder
radiusWithPosition
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo orderpublic org.reactivestreams.Publisher<Map<V,GeoPosition>> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
and limited by countradiusWithPosition
in interface RGeoReactive<V>
member
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limitpublic org.reactivestreams.Publisher<Long> radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.
Store result to destName
.radiusStoreTo
in interface RGeoReactive<V>
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Long> radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by count
Store result to destName
.radiusStoreTo
in interface RGeoReactive<V>
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<Long> radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
and limited by count
Store result to destName
.radiusStoreTo
in interface RGeoReactive<V>
destName
- - Geo object destinationlongitude
- - longitude of objectlatitude
- - latitude of objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - order of resultcount
- - result limitpublic org.reactivestreams.Publisher<Long> radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit)
RGeoReactive
GeoUnit
units.
Store result to destName
.radiusStoreTo
in interface RGeoReactive<V>
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitpublic org.reactivestreams.Publisher<Long> radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count)
RGeoReactive
GeoUnit
units and limited by count
Store result to destName
.radiusStoreTo
in interface RGeoReactive<V>
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitcount
- - result limitpublic org.reactivestreams.Publisher<Long> radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count)
RGeoReactive
GeoUnit
units with GeoOrder
Store result to destName
.radiusStoreTo
in interface RGeoReactive<V>
destName
- - Geo object destinationmember
- - objectradius
- - radius in geo unitsgeoUnit
- - geo unitgeoOrder
- - geo ordercount
- - result limitpublic org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
RExpirableReactive
expire
in interface RExpirableReactive
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(long timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> clearExpire()
RExpirableReactive
clearExpire
in interface RExpirableReactive
true
if the timeout was cleared and false
if notpublic org.reactivestreams.Publisher<Long> remainTimeToLive()
RExpirableReactive
remainTimeToLive
in interface RExpirableReactive
protected <V> reactor.core.publisher.Mono<V> newSucceeded(V result)
public String getName()
getName
in interface RObjectReactive
public Codec getCodec()
getCodec
in interface RObjectReactive
protected void encode(Collection<Object> params, Collection<?> values)
protected io.netty.buffer.ByteBuf encode(Object value)
protected io.netty.buffer.ByteBuf encodeMapKey(Object value)
protected io.netty.buffer.ByteBuf encodeMapValue(Object value)
public org.reactivestreams.Publisher<Void> restore(byte[] state)
RObjectReactive
RObjectReactive.dump()
method.restore
in interface RObjectReactive
state
- - state of objectpublic org.reactivestreams.Publisher<Void> restore(byte[] state, long timeToLive, TimeUnit timeUnit)
RObjectReactive
RObjectReactive.dump()
method and set time to live for it.restore
in interface RObjectReactive
state
- - state of objecttimeToLive
- - time to live of the objecttimeUnit
- - time unitpublic org.reactivestreams.Publisher<Void> restoreAndReplace(byte[] state)
RObjectReactive
restoreAndReplace
in interface RObjectReactive
state
- - state of the objectpublic org.reactivestreams.Publisher<Void> restoreAndReplace(byte[] state, long timeToLive, TimeUnit timeUnit)
RObjectReactive
restoreAndReplace
in interface RObjectReactive
state
- - state of the objecttimeToLive
- - time to live of the objecttimeUnit
- - time unitpublic org.reactivestreams.Publisher<byte[]> dump()
RObjectReactive
dump
in interface RObjectReactive
public org.reactivestreams.Publisher<Boolean> touch()
RObjectReactive
touch
in interface RObjectReactive
true
if object was touched else false
public org.reactivestreams.Publisher<Boolean> unlink()
RObjectReactive
Requires Redis 4.0+
unlink
in interface RObjectReactive
true
if it was exist and deleted else false
public org.reactivestreams.Publisher<Void> copy(String host, int port, int database, long timeout)
RObjectReactive
copy
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasetimeout
- - maximum idle time in any moment of the communication with the destination instance in millisecondspublic org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactive
newName
in moderename
in interface RObjectReactive
newName
- - new name of objectpublic org.reactivestreams.Publisher<Void> migrate(String host, int port, int database, long timeout)
RObjectReactive
migrate
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasetimeout
- - maximum idle time in any moment of the communication with the destination instance in millisecondspublic org.reactivestreams.Publisher<Boolean> move(int database)
RObjectReactive
move
in interface RObjectReactive
database
- - number of Redis databasetrue
if key was moved false
if notpublic org.reactivestreams.Publisher<Boolean> renamenx(String newName)
RObjectReactive
newName
in mode only if new key is not existsrenamenx
in interface RObjectReactive
newName
- - new name of objecttrue
if object has been renamed successfully and false
otherwisepublic org.reactivestreams.Publisher<Boolean> delete()
RObjectReactive
delete
in interface RObjectReactive
true
if object was deleted false
if notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactive
isExists
in interface RObjectReactive
true
if object exists and false
otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.