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

io.quarkus.redis.runtime.datasource.BlockingTransactionalHyperLogLogCommandsImpl 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.hyperloglog.ReactiveTransactionalHyperLogLogCommands;
import io.quarkus.redis.datasource.hyperloglog.TransactionalHyperLogLogCommands;
import io.quarkus.redis.datasource.transactions.TransactionalRedisDataSource;

public class BlockingTransactionalHyperLogLogCommandsImpl extends AbstractTransactionalRedisCommandGroup
        implements TransactionalHyperLogLogCommands {

    private final ReactiveTransactionalHyperLogLogCommands reactive;

    public BlockingTransactionalHyperLogLogCommandsImpl(TransactionalRedisDataSource ds,
            ReactiveTransactionalHyperLogLogCommands reactive,
            Duration timeout) {
        super(ds, timeout);
        this.reactive = reactive;
    }

    @Override
    public void pfadd(K key, V... values) {
        this.reactive.pfadd(key, values).await().atMost(this.timeout);
    }

    @Override
    public void pfmerge(K destkey, K... sourcekeys) {
        this.reactive.pfmerge(destkey, sourcekeys).await().atMost(this.timeout);
    }

    @Override
    public void pfcount(K... keys) {
        this.reactive.pfcount(keys).await().atMost(this.timeout);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy