@FunctionalInterface public static interface Functions.RetryListener
Functions.retry(String, long, Callable)
.Modifier and Type | Method and Description |
---|---|
void |
onRetry(@Nullable String description,
@Nullable Object resultOnSuccess,
@Nullable Throwable error)
Called when a
Functions.retry(String, long, Callable) call succeeds or fails. |
void onRetry(@Nullable @Nullable String description, @Nullable @Nullable Object resultOnSuccess, @Nullable @Nullable Throwable error)
Functions.retry(String, long, Callable)
call succeeds or fails.description
- the description passed to the retry()
callresultOnSuccess
- the result of the retry()
call if it succeeded,
null
otherwise.error
- null
if the retry()
call succeeded,
the exception if it failed. If not null
, then the
resultOnSuccess
must be null
.