io.quarkus.redis.datasource.stream.StreamRange 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.datasource.stream;
import java.util.ArrayList;
import java.util.List;
import io.quarkus.redis.datasource.RedisCommandExtraArguments;
import io.quarkus.redis.runtime.datasource.Validation;
/**
* Represents a stream range.
*/
public class StreamRange implements RedisCommandExtraArguments {
private final String lowerBound;
private final String higherBound;
public StreamRange(String lowerBound, String higherBound) {
this.lowerBound = Validation.notNullOrBlank(lowerBound, "lowerBound");
this.higherBound = Validation.notNullOrBlank(higherBound, "higherBound");
}
public static StreamRange of(String lowerBound, String higherBound) {
return new StreamRange(lowerBound, higherBound);
}
@Override
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy