public static class StateOptions.RetryPolicy extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StateOptions.RetryPolicy.Pattern |
Constructor and Description |
---|
RetryPolicy(Duration interval,
Integer threshold,
StateOptions.RetryPolicy.Pattern pattern)
Represents retry policies on a state operation.
|
Modifier and Type | Method and Description |
---|---|
Duration |
getInterval() |
StateOptions.RetryPolicy.Pattern |
getPattern() |
Integer |
getThreshold() |
public RetryPolicy(Duration interval, Integer threshold, StateOptions.RetryPolicy.Pattern pattern)
interval
- The delay between retries.threshold
- The total number of retries.pattern
- The way to retry: linear or exponential.public Duration getInterval()
public Integer getThreshold()
public StateOptions.RetryPolicy.Pattern getPattern()
Copyright © 2020. All rights reserved.