package tech.easyflow.common.mq.core;

public class MQSubscription {

    private String topic;
    private String consumerGroup;
    private int shardCount;
    private boolean batchEnabled = true;

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getConsumerGroup() {
        return consumerGroup;
    }

    public void setConsumerGroup(String consumerGroup) {
        this.consumerGroup = consumerGroup;
    }

    public int getShardCount() {
        return shardCount;
    }

    public void setShardCount(int shardCount) {
        this.shardCount = shardCount;
    }

    /**
     * 是否启用批量消费。
     *
     * @return true 表示启用批量消费
     */
    public boolean isBatchEnabled() {
        return batchEnabled;
    }

    /**
     * 设置是否启用批量消费。
     *
     * @param batchEnabled 是否启用批量消费
     */
    public void setBatchEnabled(boolean batchEnabled) {
        this.batchEnabled = batchEnabled;
    }
}
