Class RetryImpl<T>
java.lang.Object
io.github.resilience4j.retry.internal.RetryImpl<T>
- All Implemented Interfaces:
Retry
public class RetryImpl<T> extends java.lang.Object implements Retry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRetryImpl.AsyncContextImplclassRetryImpl.ContextImplclassRetryImpl.RetryMetricsNested 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
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, waitMethods inherited from interface io.github.resilience4j.retry.Retry
executeCallable, executeCheckedSupplier, executeCompletionStage, executeEitherSupplier, executeRunnable, executeSupplier, executeTrySupplier
-
Constructor Details
-
RetryImpl
-
RetryImpl
public RetryImpl(java.lang.String name, RetryConfig config, io.vavr.collection.Map<java.lang.String,java.lang.String> tags)
-
-
Method Details
-
getName
public java.lang.String 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
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
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
-