Package io.dapr.internal.resiliency
Class RetryPolicy
java.lang.Object
io.dapr.internal.resiliency.RetryPolicy
Retry policy for SDK communication to Dapr API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> reactor.core.publisher.Flux<T>
apply
(reactor.core.publisher.Flux<T> response) Applies the retry policy to an expected Flux action.<T> reactor.core.publisher.Mono<T>
apply
(reactor.core.publisher.Mono<T> response) Applies the retry policy to an expected Mono action.
-
Constructor Details
-
RetryPolicy
public RetryPolicy() -
RetryPolicy
-
-
Method Details
-
apply
public <T> reactor.core.publisher.Mono<T> apply(reactor.core.publisher.Mono<T> response) Applies the retry policy to an expected Mono action.- Type Parameters:
T
- Type expected for the action's response- Parameters:
response
- Response- Returns:
- action with retry
-
apply
public <T> reactor.core.publisher.Flux<T> apply(reactor.core.publisher.Flux<T> response) Applies the retry policy to an expected Flux action.- Type Parameters:
T
- Type expected for the action's response- Parameters:
response
- Response- Returns:
- action with retry
-