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)
Do after job executed at last sharding job completed.
|
abstract void |
doBeforeJobExecutedAtLastStarted(ShardingContexts shardingContexts)
Do before job executed at last sharding job started.
|
void |
notifyWaitingTaskComplete()
Notify waiting task complete.
|
void |
notifyWaitingTaskStart()
Notify waiting task start.
|
public AbstractDistributeOnceElasticJobListener(long startedTimeoutMilliseconds,
long completedTimeoutMilliseconds)
public final void beforeJobExecuted(ShardingContexts shardingContexts)
beforeJobExecuted 在接口中 ElasticJobListenerpublic final void afterJobExecuted(ShardingContexts shardingContexts)
afterJobExecuted 在接口中 ElasticJobListenerpublic abstract void doBeforeJobExecutedAtLastStarted(ShardingContexts shardingContexts)
shardingContexts - sharding contextspublic abstract void doAfterJobExecutedAtLastCompleted(ShardingContexts shardingContexts)
shardingContexts - sharding contextspublic void notifyWaitingTaskStart()
public void notifyWaitingTaskComplete()
Copyright © 2020 The Apache Software Foundation. All rights reserved.