Interface RetryOperationsFactory
public interface RetryOperationsFactory
Factory for programmatic retry operations.
- Since:
- 5.0.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptionstatic RetryOperationsFactorycreate(ScheduledExecutorService executorService) Creates a retry operations factory backed by the given scheduler.createRetryOperations(RetryPolicy retryPolicy) Creates reusable retry operations for the given policy.
-
Method Details
-
create
Creates a retry operations factory backed by the given scheduler.- Parameters:
executorService- The scheduler used for delayed retries- Returns:
- A retry operations factory
-
createRetryOperations
Creates reusable retry operations for the given policy.- Parameters:
retryPolicy- The retry policy to apply- Returns:
- Reusable retry operations
-