T - The type of the result of this Retryable.@FunctionalInterface public interface Retryable<T>
RetryPolicy.run(Retryable).
This is a functional interface whose functional method is
retry(RetryPolicy,int).
| Modifier and Type | Method and Description |
|---|---|
T |
retry(RetryPolicy retryPolicy,
int attemptNo)
Main run method of the
Retryable that is invoked by a
RetryPolicy, which defines the rules of retry invocations. |
T retry(RetryPolicy retryPolicy, int attemptNo) throws Exception
Retryable that is invoked by a
RetryPolicy, which defines the rules of retry invocations.retryPolicy - The invoking RetryPolicy.attemptNo - The incremental sequence number of the retry attempt.Exception - If an exception occurs.Copyright © 2020 LightStep. All rights reserved.