public interface RestartBackoffTimeStrategy
Modifier and Type | Interface and Description |
---|---|
static interface |
RestartBackoffTimeStrategy.Factory
The factory to instantiate
RestartBackoffTimeStrategy . |
Modifier and Type | Method and Description |
---|---|
boolean |
canRestart()
Returns whether a restart should be conducted.
|
long |
getBackoffTime()
Returns the delay to do the restarting.
|
void |
notifyFailure(Throwable cause)
Notify the strategy about the task failure cause.
|
boolean canRestart()
long getBackoffTime()
void notifyFailure(Throwable cause)
cause
- of the task failureCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.