com.aliyun.openservices.log.response.ProjectConsumerGroupCheckPointResponse Maven / Gradle / Ivy
package com.aliyun.openservices.log.response;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.openservices.log.common.ConsumerGroupShardCheckPoint;
import java.util.*;
public class ProjectConsumerGroupCheckPointResponse extends Response {
private static final long serialVersionUID = -5446935677776563121L;
private Map> checkPoints;
public ProjectConsumerGroupCheckPointResponse(Map headers, JSONObject checkPointsMap) {
super(headers);
checkPoints = new HashMap>();
for (String logStore : checkPointsMap.keySet()) {
List cpList = new ArrayList();
JSONArray cpJsonArray = checkPointsMap.getJSONArray(logStore);
for (int i = 0; i < cpJsonArray.size(); ++i) {
ConsumerGroupShardCheckPoint cp = new ConsumerGroupShardCheckPoint();
cp.Deserialize(cpJsonArray.getJSONObject(i));
cpList.add(cp);
}
checkPoints.put(logStore, cpList);
}
}
public Map> getCheckPoints() {
return checkPoints;
}
public void setCheckPoints(Map> checkPoints) {
this.checkPoints = checkPoints;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy