| 构造器和说明 |
|---|
AbstractRedisDelayTask(org.springframework.data.redis.core.StringRedisTemplate template) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHandler(DelayTaskRetryErrorHandler handler) |
boolean |
createTask(Long executeTime,
String taskValue) |
boolean |
createTask(TaskDefinition task) |
protected void |
failProcess(TaskDefinition task,
Exception e)
任务执行报错后置处理
|
boolean |
removeTask(Collection<String> tasks) |
boolean |
removeTask(String... tasks) |
void |
setRetryCount(int retryCount) |
void |
setThreadPool(int coreSize,
int activeCount) |
void |
setThreadPool(ThreadPoolExecutor threadPool) |
void |
start() |
void |
stop() |
boolean |
supportsException(Exception e) |
public AbstractRedisDelayTask(org.springframework.data.redis.core.StringRedisTemplate template)
public void setThreadPool(int coreSize,
int activeCount)
public void setThreadPool(ThreadPoolExecutor threadPool)
public void setRetryCount(int retryCount)
public void addHandler(DelayTaskRetryErrorHandler handler)
public boolean createTask(Long executeTime, String taskValue)
createTask 在接口中 DelayTaskpublic boolean createTask(TaskDefinition task)
createTask 在接口中 DelayTaskpublic boolean removeTask(String... tasks)
removeTask 在接口中 DelayTaskpublic boolean removeTask(Collection<String> tasks)
removeTask 在接口中 DelayTaskpublic boolean supportsException(Exception e)
supportsException 在接口中 DelayTaskprotected void failProcess(TaskDefinition task, Exception e)
task - 队列中的任务的值Copyright © 2022. All rights reserved.