All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.redis.runtime.datasource.BlockingTransactionalGraphCommandsImpl Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
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