public final class RetryContext<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
Duration |
getLastCallDuration() |
Throwable |
getLastError() |
T |
getLastResult() |
int |
getRetryCount() |
RetryContext<T> |
overrideLastCallDuration(Duration newDuration) |
RetryContext<T> |
overrideLastError(Throwable newError) |
RetryContext<T> |
overrideLastResult(T newResult) |
RetryContext<T> |
overrideRetryCount(int newRetryCount) |
public int getRetryCount()
public Duration getLastCallDuration()
public T getLastResult()
public Throwable getLastError()
public RetryContext<T> overrideRetryCount(int newRetryCount)
public RetryContext<T> overrideLastCallDuration(Duration newDuration)
public RetryContext<T> overrideLastResult(T newResult)
public RetryContext<T> overrideLastError(Throwable newError)
Copyright © 2021. All rights reserved.