redis.clients.jedis.gears.resps.StreamTriggerInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
package redis.clients.jedis.gears.resps;
import redis.clients.jedis.Builder;
import redis.clients.jedis.util.KeyValue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import static redis.clients.jedis.BuilderFactory.*;
import static redis.clients.jedis.gears.resps.FunctionStreamInfo.STREAM_INFO_LIST;
public class StreamTriggerInfo {
private final String name;
private final String description;
private final String prefix;
private final boolean trim;
private final long window;
private final List streams;
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public String getPrefix() {
return prefix;
}
public boolean isTrim() {
return trim;
}
public long getWindow() {
return window;
}
public List getStreams() {
return streams;
}
public StreamTriggerInfo(String name, String description, String prefix,
long window, boolean trim, List streams) {
this.name = name;
this.description = description;
this.prefix = prefix;
this.window = window;
this.trim = trim;
this.streams = streams;
}
public StreamTriggerInfo(String name) {
this(name, null, null, 0, false, Collections.emptyList());
}
public StreamTriggerInfo(String name, String description, String prefix,
long window, boolean trim) {
this(name, description, prefix, window, trim, Collections.emptyList());
}
public static final Builder> STREAM_TRIGGER_INFO_LIST = new Builder>() {
@Override
public List build(Object data) {
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy