T - key type.public class RetrierRunnable<T> extends BackoffRunnable
BackoffRunnable with a key of type T that returns a SessionMetadata that only depends on
whether the inner Runnable raises an exception or not.| Constructor and Description |
|---|
RetrierRunnable(T key,
Runnable runnable,
BackoffConfiguration configuration,
BackoffBarrier barrier) |
| Modifier and Type | Method and Description |
|---|---|
protected SessionMetadata |
execute() |
Runnable |
inner() |
T |
key() |
String |
toString() |
delay, go, ifError, ifUnstable, otherwise, runpublic RetrierRunnable(T key, Runnable runnable, BackoffConfiguration configuration, BackoffBarrier barrier)
protected SessionMetadata execute()
execute in class BackoffRunnableRetrySuccessfulSessionMetadata if no exception has been raised, otherwise,
RetryFailedSessionMetadata.public T key()
public String toString()
toString in class BackoffRunnableCopyright © 2014–2021 MuleSoft, Inc.. All rights reserved.