redis.clients.jedis.gears.resps.FunctionStreamInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.gears.resps;
import redis.clients.jedis.Builder;
import redis.clients.jedis.BuilderFactory;
import java.util.List;
import java.util.stream.Collectors;
public class FunctionStreamInfo {
private final String name;
private final String idToReadFrom;
private final String lastError;
private final long lastLag;
private final long lastProcessedTime;
private final long totalLag;
private final long totalProcessedTime;
private final long totalRecordProcessed;
private final List pendingIds;
public String getName() {
return name;
}
public String getIdToReadFrom() {
return idToReadFrom;
}
public String getLastError() {
return lastError;
}
public long getLastLag() {
return lastLag;
}
public long getLastProcessedTime() {
return lastProcessedTime;
}
public long getTotalLag() {
return totalLag;
}
public long getTotalProcessedTime() {
return totalProcessedTime;
}
public long getTotalRecordProcessed() {
return totalRecordProcessed;
}
public List getPendingIds() {
return pendingIds;
}
public FunctionStreamInfo(String name, String idToReadFrom, String lastError,
long lastProcessedTime, long lastLag, long totalLag, long totalProcessedTime, long totalRecordProcessed,
List pendingIds) {
this.name = name;
this.idToReadFrom = idToReadFrom;
this.lastError = lastError;
this.lastProcessedTime = lastProcessedTime;
this.lastLag = lastLag;
this.totalLag = totalLag;
this.totalProcessedTime = totalProcessedTime;
this.totalRecordProcessed = totalRecordProcessed;
this.pendingIds = pendingIds;
}
public static final Builder> STREAM_INFO_LIST = new Builder>() {
@Override
public List build(Object data) {
return ((List