package com.ycwl.basic.integration.kafka.scheduler;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * 账号调度器上下文
 * 封装每个账号的线程池和QPS调度器
 */
@Data
@AllArgsConstructor
public class AccountSchedulerContext {
    /**
     * 账号唯一标识 (accessKeyId 或 appId)
     */
    private String accountKey;

    /**
     * 云类型 ("ALI" 或 "BAIDU")
     */
    private String cloudType;

    /**
     * 该账号专属的线程池
     */
    private ThreadPoolExecutor executor;

    /**
     * 该账号专属的QPS调度器
     */
    private QpsScheduler scheduler;
}
