io.quarkus.redis.runtime.datasource.BlockingTransactionalGeoCommandsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-redis-client Show documentation
Show all versions of quarkus-redis-client Show documentation
Connect to Redis in either imperative or reactive style
package io.quarkus.redis.runtime.datasource;
import java.time.Duration;
import io.quarkus.redis.datasource.geo.GeoAddArgs;
import io.quarkus.redis.datasource.geo.GeoItem;
import io.quarkus.redis.datasource.geo.GeoPosition;
import io.quarkus.redis.datasource.geo.GeoRadiusArgs;
import io.quarkus.redis.datasource.geo.GeoRadiusStoreArgs;
import io.quarkus.redis.datasource.geo.GeoSearchArgs;
import io.quarkus.redis.datasource.geo.GeoSearchStoreArgs;
import io.quarkus.redis.datasource.geo.GeoUnit;
import io.quarkus.redis.datasource.geo.ReactiveTransactionalGeoCommands;
import io.quarkus.redis.datasource.geo.TransactionalGeoCommands;
import io.quarkus.redis.datasource.transactions.TransactionalRedisDataSource;
public class BlockingTransactionalGeoCommandsImpl extends AbstractTransactionalRedisCommandGroup
implements TransactionalGeoCommands {
private final ReactiveTransactionalGeoCommands reactive;
public BlockingTransactionalGeoCommandsImpl(TransactionalRedisDataSource ds,
ReactiveTransactionalGeoCommands reactive, Duration timeout) {
super(ds, timeout);
this.reactive = reactive;
}
@Override
public void geoadd(K key, double longitude, double latitude, V member) {
this.reactive.geoadd(key, longitude, latitude, member).await().atMost(this.timeout);
}
@Override
public void geoadd(K key, GeoPosition position, V member) {
this.reactive.geoadd(key, position, member).await().atMost(this.timeout);
}
@Override
public void geoadd(K key, GeoItem item) {
this.reactive.geoadd(key, item).await().atMost(this.timeout);
}
@Override
public void geoadd(K key, GeoItem... items) {
this.reactive.geoadd(key, items).await().atMost(this.timeout);
}
@Override
public void geoadd(K key, double longitude, double latitude, V member, GeoAddArgs args) {
this.reactive.geoadd(key, longitude, latitude, member, args).await().atMost(this.timeout);
}
@Override
public void geoadd(K key, GeoItem item, GeoAddArgs args) {
this.reactive.geoadd(key, item, args).await().atMost(this.timeout);
}
@Override
public void geoadd(K key, GeoAddArgs args, GeoItem... items) {
this.reactive.geoadd(key, args, items).await().atMost(this.timeout);
}
@Override
public void geodist(K key, V from, V to, GeoUnit unit) {
this.reactive.geodist(key, from, to, unit).await().atMost(this.timeout);
}
@Override
public void geohash(K key, V... members) {
this.reactive.geohash(key, members).await().atMost(this.timeout);
}
@Override
public void geopos(K key, V... members) {
this.reactive.geopos(key, members).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadius(K key, double longitude, double latitude, double radius, GeoUnit unit) {
this.reactive.georadius(key, longitude, latitude, radius, unit).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadius(K key, GeoPosition position, double radius, GeoUnit unit) {
this.reactive.georadius(key, position, radius, unit).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadius(K key, double longitude, double latitude, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) {
this.reactive.georadius(key, longitude, latitude, radius, unit, geoArgs).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusArgs geoArgs) {
this.reactive.georadius(key, position, radius, unit, geoArgs).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadius(K key, double longitude, double latitude, double radius, GeoUnit unit,
GeoRadiusStoreArgs geoArgs) {
this.reactive.georadius(key, longitude, latitude, radius, unit, geoArgs).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadius(K key, GeoPosition position, double radius, GeoUnit unit, GeoRadiusStoreArgs geoArgs) {
this.reactive.georadius(key, position, radius, unit, geoArgs).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadiusbymember(K key, V member, double distance, GeoUnit unit) {
this.reactive.georadiusbymember(key, member, distance, unit).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusArgs geoArgs) {
this.reactive.georadiusbymember(key, member, distance, unit, geoArgs).await().atMost(this.timeout);
}
@Deprecated
@Override
public void georadiusbymember(K key, V member, double distance, GeoUnit unit, GeoRadiusStoreArgs geoArgs) {
this.reactive.georadiusbymember(key, member, distance, unit, geoArgs).await().atMost(this.timeout);
}
@Override
public void geosearch(K key, GeoSearchArgs args) {
this.reactive.geosearch(key, args).await().atMost(this.timeout);
}
@Override
public void geosearchstore(K destination, K key, GeoSearchStoreArgs args, boolean storeDist) {
this.reactive.geosearchstore(destination, key, args, storeDist).await().atMost(this.timeout);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy