public class ExecutionConfig extends Object
Modifier and Type | Field and Description |
---|---|
static ExecutionConfig |
NON_TERMINATING |
static ExecutionConfig |
TERMINATING |
Constructor and Description |
---|
ExecutionConfig() |
Modifier and Type | Method and Description |
---|---|
ExecutionBehavior |
getExecutionBehavior() |
int |
getRetryCount() |
Duration |
getRetryDelay() |
ExecutionConfig |
immediateRetrying(int count) |
boolean |
isImmediatelyRetrying() |
boolean |
isNonTerminating() |
boolean |
isScheduledRetrying() |
boolean |
isTerminating() |
ExecutionConfig |
nonTerminating() |
ExecutionConfig |
scheduledRetrying(int count,
Duration delay) |
boolean |
shouldRetry(int currentCount) |
ExecutionConfig |
terminating() |
void |
validate()
Does basic validation to make sure object is valid
|
public static final ExecutionConfig TERMINATING
public static final ExecutionConfig NON_TERMINATING
public ExecutionConfig nonTerminating()
public ExecutionConfig terminating()
public ExecutionConfig immediateRetrying(int count)
public ExecutionConfig scheduledRetrying(int count, Duration delay)
public ExecutionBehavior getExecutionBehavior()
public int getRetryCount()
public Duration getRetryDelay()
public boolean isTerminating()
public boolean isNonTerminating()
public boolean isImmediatelyRetrying()
public boolean isScheduledRetrying()
public boolean shouldRetry(int currentCount)
currentCount
- public void validate()
Copyright © 2016 Dexecutor. All rights reserved.