Package io.dapr.client.domain
Class StateOptions.RetryPolicy
java.lang.Object
io.dapr.client.domain.StateOptions.RetryPolicy
- Enclosing class:
- StateOptions
public static class StateOptions.RetryPolicy
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStateOptions.RetryPolicy.Pattern -
Constructor Summary
Constructors Constructor Description RetryPolicy(java.time.Duration interval, java.lang.Integer threshold, StateOptions.RetryPolicy.Pattern pattern)Represents retry policies on a state operation. -
Method Summary
Modifier and Type Method Description java.time.DurationgetInterval()StateOptions.RetryPolicy.PatterngetPattern()java.lang.IntegergetThreshold()
-
Constructor Details
-
RetryPolicy
public RetryPolicy(java.time.Duration interval, java.lang.Integer threshold, StateOptions.RetryPolicy.Pattern pattern)Represents retry policies on a state operation.- Parameters:
interval- The delay between retries.threshold- The total number of retries.pattern- The way to retry: linear or exponential.
-
-
Method Details
-
getInterval
public java.time.Duration getInterval() -
getThreshold
public java.lang.Integer getThreshold() -
getPattern
-