io.quarkus.redis.runtime.datasource.BlockingTransactionalGraphCommandsImpl 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.graph.ReactiveTransactionalGraphCommands;
import io.quarkus.redis.datasource.graph.TransactionalGraphCommands;
import io.quarkus.redis.datasource.transactions.TransactionalRedisDataSource;
public class BlockingTransactionalGraphCommandsImpl extends AbstractTransactionalRedisCommandGroup
implements TransactionalGraphCommands {
private final ReactiveTransactionalGraphCommands reactive;
public BlockingTransactionalGraphCommandsImpl(TransactionalRedisDataSource ds,
ReactiveTransactionalGraphCommands reactive, Duration timeout) {
super(ds, timeout);
this.reactive = reactive;
}
@Override
public void graphDelete(K key) {
reactive.graphDelete(key).await().atMost(timeout);
}
@Override
public void graphExplain(K key, String query) {
reactive.graphExplain(key, query).await().atMost(timeout);
}
@Override
public void graphList() {
reactive.graphList().await().atMost(timeout);
}
@Override
public void graphQuery(K key, String query) {
reactive.graphQuery(key, query).await().atMost(timeout);
}
@Override
public void graphQuery(K key, String query, Duration timeout) {
reactive.graphQuery(key, query, timeout).await().atMost(timeout);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy