Class RetryImpl<T>
java.lang.Object
io.github.resilience4j.retry.internal.RetryImpl<T>
- All Implemented Interfaces:
Retry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classfinal classfinal classNested classes/interfaces inherited from interface io.github.resilience4j.retry.Retry
Retry.AsyncContext<T>, Retry.AsyncRetryBlock<T>, Retry.Context<T>, Retry.EventPublisher, Retry.Metrics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a async retry Context.context()Creates a retry Context.Returns an EventPublisher can be used to register event consumers.Get the Metrics of this Retry instance.getName()Returns the ID of this Retry.Returns the RetryConfig of this Retry.getTags()Returns an unmodifiable map with tags assigned to this Retry.static voidsetSleepFunction(io.github.resilience4j.core.functions.CheckedConsumer<Long> sleepFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.resilience4j.retry.Retry
executeCallable, executeCheckedSupplier, executeCompletionStage, executeRunnable, executeSupplier
-
Constructor Details
-
RetryImpl
-
RetryImpl
-
-
Method Details
-
setSleepFunction
public static void setSleepFunction(io.github.resilience4j.core.functions.CheckedConsumer<Long> sleepFunction) -
getName
Returns the ID of this Retry. -
context
Description copied from interface:RetryCreates a retry Context. -
asyncContext
Description copied from interface:RetryCreates a async retry Context.- Specified by:
asyncContextin interfaceRetry- Returns:
- the async retry Context
-
getRetryConfig
Description copied from interface:RetryReturns the RetryConfig of this Retry.- Specified by:
getRetryConfigin interfaceRetry- Returns:
- the RetryConfig of this Retry
-
getTags
Description copied from interface:RetryReturns an unmodifiable map with tags assigned to this Retry. -
getEventPublisher
Description copied from interface:RetryReturns an EventPublisher can be used to register event consumers.- Specified by:
getEventPublisherin interfaceRetry- Returns:
- an EventPublisher
-
getMetrics
Get the Metrics of this Retry instance.- Specified by:
getMetricsin interfaceRetry- Returns:
- the Metrics of this Retry instance
-