public class WorkflowSettings extends ModelObject
Modifier and Type | Class and Description |
---|---|
static class |
WorkflowSettings.Builder
Builder for workflow settings.
|
Modifier and Type | Field and Description |
---|---|
int |
immediateTransitionDelay
Immediate transition delay.
|
int |
maxErrorTransitionDelay
Maximum delay on execution retry after an error.
|
int |
maxRetries
Maximum retry attempts.
|
int |
maxSubsequentStateExecutions
Maximum number of subsequent state executions before forcing a short transition delay.
|
Map<WorkflowState,Integer> |
maxSubsequentStateExecutionsPerState
Maximum number of subsequent state executions before forcing a short transition delay, per state.
|
int |
minErrorTransitionDelay
Minimum delay on execution retry after an error.
|
int |
shortTransitionDelay
Length of forced delay to break execution of a step that is considered to be busy looping.
|
Modifier and Type | Method and Description |
---|---|
protected long |
calculateBinaryBackoffDelay(int retryCount,
long minDelay,
long maxDelay)
Return activation delay based on retry attempt number.
|
org.joda.time.DateTime |
getErrorTransitionActivation(int retryCount)
Return next activation time after error.
|
int |
getMaxSubsequentStateExecutions(WorkflowState state)
Return the maximum number of subsequent state executions before forcing a short transition delay.
|
org.joda.time.DateTime |
getShortTransitionActivation()
Return the delay before next activation after detecting a busy loop.
|
equals, hashCode, toString
public final int minErrorTransitionDelay
public final int maxErrorTransitionDelay
public final int shortTransitionDelay
public final int immediateTransitionDelay
public final int maxRetries
public final int maxSubsequentStateExecutions
public final Map<WorkflowState,Integer> maxSubsequentStateExecutionsPerState
public org.joda.time.DateTime getErrorTransitionActivation(int retryCount)
retryCount
- Number of retry attemps.protected long calculateBinaryBackoffDelay(int retryCount, long minDelay, long maxDelay)
retryCount
- Retry attempt number.minDelay
- Minimum retry delay.maxDelay
- Maximum retry delay.public org.joda.time.DateTime getShortTransitionActivation()
public int getMaxSubsequentStateExecutions(WorkflowState state)
state
- The state for which the limit is checked.Copyright © 2014–2017 Nitor Creations. All rights reserved.