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 class` | `StateOptions.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.Duration` | `getInterval()` |
  `StateOptions.RetryPolicy.Pattern` | `getPattern()` |
  `java.lang.Integer` | `getThreshold()` |

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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

    public StateOptions.RetryPolicy.Pattern getPattern()