@DisallowConcurrentExecution
@PersistJobDataAfterExecution
public class JobHandlerInvoker
extends org.springframework.scheduling.quartz.QuartzJobBean
JobHandler.execute(String) 执行任务| 限定符和类型 | 字段和说明 |
|---|---|
private JobLogBaseService |
jobLogService |
private static org.slf4j.Logger |
log |
| 构造器和说明 |
|---|
JobHandlerInvoker() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
executeInternal(org.quartz.JobExecutionContext context) |
private String |
executeInternal(String beanName,
String args)
执行任务
|
private void |
handleException(Throwable exception,
int refireCount,
int retryCount,
int retryInterval)
异常处理
|
private void |
updateJobLogResultAsync(String jobLogId,
String data,
Throwable exception,
org.quartz.JobExecutionContext context)
更新 记录日志
|
private static final org.slf4j.Logger log
private JobLogBaseService jobLogService
protected void executeInternal(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
executeInternal 在类中 org.springframework.scheduling.quartz.QuartzJobBeanorg.quartz.JobExecutionExceptionprivate String executeInternal(String beanName, String args) throws Exception
beanName - 名称args - 参数Exception - 异常private void updateJobLogResultAsync(String jobLogId, String data, Throwable exception, org.quartz.JobExecutionContext context)
jobLogId - logIddata - 数据exception - 异常context - 上下文private void handleException(Throwable exception, int refireCount, int retryCount, int retryInterval) throws org.quartz.JobExecutionException
exception - 异常refireCount - 再试次数retryCount - 重试次数retryInterval - 重试间隔org.quartz.JobExecutionException - 异常Copyright © 2024. All rights reserved.