package com.ruoyi.cron.event;

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

import java.util.List;

public class CronTaskEvent extends ApplicationEvent {

  @Getter
  private String taskId;

  @Getter
  private List<String> paramELs;

  @Getter
  private Long cronId;

  public CronTaskEvent(Long cronId, String taskId, List<String> paramELs) {
    super(taskId);
    this.taskId = taskId;
    this.paramELs = paramELs;
    this.cronId = cronId;
  }
}
