public abstract class AbstractDistributeOnceElasticJobListener extends Object implements ElasticJobListener
| 构造器和说明 |
|---|
AbstractDistributeOnceElasticJobListener(long startedTimeoutMilliseconds,
long completedTimeoutMilliseconds) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterJobExecuted(JobExecutionMultipleShardingContext shardingContext)
作业执行后的执行的方法.
|
void |
beforeJobExecuted(JobExecutionMultipleShardingContext shardingContext)
作业执行前的执行的方法.
|
abstract void |
doAfterJobExecutedAtLastCompleted(JobExecutionMultipleShardingContext shardingContext)
分布式环境中最后一个作业执行后的执行的方法.
|
abstract void |
doBeforeJobExecutedAtLastStarted(JobExecutionMultipleShardingContext shardingContext)
分布式环境中最后一个作业执行前的执行的方法.
|
void |
notifyWaitingTaskComplete()
通知任务结束.
|
void |
notifyWaitingTaskStart()
通知任务开始.
|
public AbstractDistributeOnceElasticJobListener(long startedTimeoutMilliseconds,
long completedTimeoutMilliseconds)
public final void beforeJobExecuted(JobExecutionMultipleShardingContext shardingContext)
ElasticJobListenerbeforeJobExecuted 在接口中 ElasticJobListenershardingContext - 分片上下文public final void afterJobExecuted(JobExecutionMultipleShardingContext shardingContext)
ElasticJobListenerafterJobExecuted 在接口中 ElasticJobListenershardingContext - 分片上下文public abstract void doBeforeJobExecutedAtLastStarted(JobExecutionMultipleShardingContext shardingContext)
shardingContext - 分片上下文public abstract void doAfterJobExecutedAtLastCompleted(JobExecutionMultipleShardingContext shardingContext)
shardingContext - 分片上下文public void notifyWaitingTaskStart()
public void notifyWaitingTaskComplete()
Copyright © 2016. All rights reserved.