package com.ruoyi.cron.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 定时任务开始事件
 */
public class CronTaskStartEvent extends ApplicationEvent {

  @Getter
  private String taskId;


  @Getter
  private Long cronId;

  @Getter
  private Integer groupId;

  public CronTaskStartEvent(Long cronId, String taskId, Integer groupId) {
    super(taskId);
    this.taskId = taskId;
    this.groupId = groupId;
    this.cronId = cronId;
  }
}
