T - key's type.public interface RunnableRetrier<T>
extends org.mule.runtime.api.lifecycle.Disposable
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasQueuedRunnables(T key)
Return whether there are task pending to execute for an specific key.
|
RunnableRetrier<T> |
scheduleRetry(T key,
Runnable runnable)
Schedules a task to be executed until successful.
|
RunnableRetrier<T> scheduleRetry(T key, Runnable runnable)
key - Runnable's key.runnable - task to schedule.boolean hasQueuedRunnables(T key)
key - pending task's key.Copyright © 2014–2021 MuleSoft, Inc.. All rights reserved.