io.quarkus.redis.runtime.datasource.BlockingTransactionalHyperLogLogCommandsImpl 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.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