package com.zl.mjga.job;

import java.text.MessageFormat;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;

@Slf4j
public class EmailJob implements Job {

  @Override
  public void execute(JobExecutionContext context) {
    String userEmail = context.getJobDetail().getJobDataMap().getString("userEmail");
    log.info(
        MessageFormat.format(
            "Job execute: JobName {0} Param {1} Thread: {2}",
            getClass(), userEmail, Thread.currentThread().getName()));
  }
}
