package com.ruoyi.cron.event;

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

/**
 * 定时任务结束事件
 */
public class CronTaskEndEvent extends ApplicationEvent {

  @Getter
  private String taskId;


  @Getter
  private Long cronId;

  @Getter
  private Integer groupId;

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