public class AsyncRetryImpl extends java.lang.Object implements AsyncRetry
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncRetryImpl.AsyncRetryMetrics |
class |
AsyncRetryImpl.ContextImpl |
AsyncRetry.Context, AsyncRetry.EventPublisher, AsyncRetry.Metrics| Constructor and Description |
|---|
AsyncRetryImpl(java.lang.String name,
RetryConfig config) |
| Modifier and Type | Method and Description |
|---|---|
AsyncRetry.Context |
context()
Creates a retry Context.
|
AsyncRetry.EventPublisher |
getEventPublisher()
Returns an EventPublisher which can be used to register event consumers.
|
AsyncRetry.Metrics |
getMetrics()
Get the Metrics of this RateLimiter.
|
java.lang.String |
getName()
Returns the ID of this Retry.
|
RetryConfig |
getRetryConfig()
Returns the RetryConfig of this Retry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorateCompletionStage, executeCompletionStage, of, of, ofDefaultspublic AsyncRetryImpl(java.lang.String name,
RetryConfig config)
public java.lang.String getName()
AsyncRetrygetName in interface AsyncRetrypublic AsyncRetry.Context context()
AsyncRetrycontext in interface AsyncRetrypublic RetryConfig getRetryConfig()
AsyncRetrygetRetryConfig in interface AsyncRetrypublic AsyncRetry.Metrics getMetrics()
AsyncRetrygetMetrics in interface AsyncRetrypublic AsyncRetry.EventPublisher getEventPublisher()
AsyncRetrygetEventPublisher in interface AsyncRetry