io.quarkus.redis.runtime.datasource.BlockingGraphCommandsImpl 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 java.util.List;
import java.util.Map;
import io.quarkus.redis.datasource.RedisDataSource;
import io.quarkus.redis.datasource.graph.GraphCommands;
import io.quarkus.redis.datasource.graph.GraphQueryResponseItem;
import io.quarkus.redis.datasource.graph.ReactiveGraphCommands;
public class BlockingGraphCommandsImpl extends AbstractRedisCommandGroup implements GraphCommands {
private final ReactiveGraphCommands reactive;
public BlockingGraphCommandsImpl(RedisDataSource ds, ReactiveGraphCommands reactive, Duration timeout) {
super(ds, timeout);
this.reactive = reactive;
}
@Override
public void graphDelete(K key) {
reactive.graphDelete(key).await().atMost(timeout);
}
@Override
public String graphExplain(K key, String query) {
return reactive.graphExplain(key, query).await().atMost(timeout);
}
@Override
public List graphList() {
return reactive.graphList().await().atMost(timeout);
}
@Override
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy