Package ru.tinkoff.kora.resilient.retry
Interface Retrier
public interface Retrier
Retry executor implementation
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRetry State implementation for manual retry execution handling -
Method Summary
-
Method Details
-
asState
- Returns:
- new
Retrier.RetryState
-
asReactor
@Nonnull reactor.util.retry.Retry asReactor()- Returns:
- new
Retryimplementation for Project Reactor retry handling
-
retry
- Parameters:
runnable- to execute for successful completion- Throws:
RetryAttemptException- if exhausted all attempts
-
retry
- Type Parameters:
T- type of value- Parameters:
supplier- to use for value extraction- Returns:
- value is succeeded
- Throws:
RetryAttemptException- if exhausted all attempts
-
retry
- Type Parameters:
T- type of value- Parameters:
supplier- to use for value extractionfallback- to use for value if failed to retrieve value from supplier- Returns:
- value is succeeded
-