Action - class of request objects to handlepublic class ExponentialBackoffScheduler<Action extends Schedulable> extends Object implements Scheduler<Action>
This scheduler implementation is based on Google and Amazon recommendations.
| Constructor and Description |
|---|
ExponentialBackoffScheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
launch(Action action)
When a recoverable error is thrown, the scheduler keep the action in its queue and delays all
launches by sleeping the thread while in locked state
|
public void launch(Action action) throws InterruptedException, FatalError
launch in interface Scheduler<Action extends Schedulable>action - the action to launchInterruptedException - if the scheduler thread is interruptedFatalError - if the action could not be executed or rescheduled after a RecoverableErrorCopyright © 2010–2025 The DAISY Consortium. All rights reserved.