Class RetryImpl<T>
- java.lang.Object
-
- io.github.resilience4j.retry.internal.RetryImpl<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRetryImpl.AsyncContextImplclassRetryImpl.ContextImplclassRetryImpl.RetryMetrics-
Nested 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 Constructor Description RetryImpl(java.lang.String name, RetryConfig config)RetryImpl(java.lang.String name, RetryConfig config, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Retry.AsyncContextasyncContext()Creates a async retry Context.Retry.Contextcontext()Creates a retry Context.Retry.EventPublishergetEventPublisher()Returns an EventPublisher can be used to register event consumers.Retry.MetricsgetMetrics()Get the Metrics of this Retry instance.java.lang.StringgetName()Returns the ID of this Retry.RetryConfiggetRetryConfig()Returns the RetryConfig of this Retry.io.vavr.collection.Map<java.lang.String,java.lang.String>getTags()Returns an unmodifiable map with tags assigned to this Retry.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.resilience4j.retry.Retry
executeCallable, executeCheckedSupplier, executeCompletionStage, executeEitherSupplier, executeRunnable, executeSupplier, executeTrySupplier
-
-
-
-
Constructor Detail
-
RetryImpl
public RetryImpl(java.lang.String name, RetryConfig config)
-
RetryImpl
public RetryImpl(java.lang.String name, RetryConfig config, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the ID of this Retry.
-
context
public Retry.Context context()
Description copied from interface:RetryCreates a retry Context.
-
asyncContext
public Retry.AsyncContext asyncContext()
Description copied from interface:RetryCreates a async retry Context.- Specified by:
asyncContextin interfaceRetry- Returns:
- the async retry Context
-
getRetryConfig
public RetryConfig getRetryConfig()
Description copied from interface:RetryReturns the RetryConfig of this Retry.- Specified by:
getRetryConfigin interfaceRetry- Returns:
- the RetryConfig of this Retry
-
getTags
public io.vavr.collection.Map<java.lang.String,java.lang.String> getTags()
Description copied from interface:RetryReturns an unmodifiable map with tags assigned to this Retry.
-
getEventPublisher
public Retry.EventPublisher getEventPublisher()
Description copied from interface:RetryReturns an EventPublisher can be used to register event consumers.- Specified by:
getEventPublisherin interfaceRetry- Returns:
- an EventPublisher
-
getMetrics
public Retry.Metrics getMetrics()
Get the Metrics of this Retry instance.- Specified by:
getMetricsin interfaceRetry- Returns:
- the Metrics of this Retry instance
-
-