All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.log.response.ConsumerGroupCheckPointResponse Maven / Gradle / Ivy

package com.aliyun.openservices.log.response;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;

import com.aliyun.openservices.log.common.ConsumerGroupShardCheckPoint;

public class ConsumerGroupCheckPointResponse extends Response {
    /**
     *
     */
    private static final long serialVersionUID = 8040754126341011292L;
    private List checkPoints;

    public ConsumerGroupCheckPointResponse(Map headers, JSONArray checkPointsArray) {
        super(headers);
        checkPoints = new ArrayList();
        for (int i = 0; i < checkPointsArray.size(); ++i) {
            ConsumerGroupShardCheckPoint checkpoint = new ConsumerGroupShardCheckPoint();
            checkpoint.Deserialize(checkPointsArray.getJSONObject(i));
            checkPoints.add(checkpoint);
        }
    }

    /**
     * @return shard checkpoint
     * @deprecated Use {@link #getCheckPoints()} instead.
     */
    @Deprecated
    public ArrayList GetCheckPoints() {
        return new ArrayList(checkPoints);
    }

    /**
     * @deprecated Use {@link #setCheckPoints(List)} instead.
     */
    @Deprecated
    public void SetCheckPoints(ArrayList checkPoints) {
        this.checkPoints = checkPoints;
    }

    public List getCheckPoints() {
        return checkPoints;
    }

    public void setCheckPoints(List checkPoints) {
        this.checkPoints = checkPoints;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy