package com.friday.distributor.queue;

import com.friday.distributor.scheduler.ExecScheduler;
import com.friday.distributor.scheduler.QueuePoller;
import com.friday.distributor.bean.Task;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author YaoYao
 * @Date Created In 11:08 2023/2/27
 * @Description 任务队列
 * @Modified By
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskQueue {
    //队列键值
    private String key;
    //是否在启动时轮询中
    private boolean linearPolling;
    //任务队列
    private List<Task> taskList;
    //轮询器
    private QueuePoller poller;
    //执行调度器
    private ExecScheduler execScheduler;

}
