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