Interface Invoker
public interface Invoker
Defines a strategy for invoking a given action.
TODO Replace this with Failsafe
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionstatic Invokerdirect()Creates a direct invoker.default <E extends Exception>
voidinvoke(org.wildfly.common.function.ExceptionRunnable<E> action) Invokes the specified action<R,E extends Exception>
Rinvoke(org.wildfly.common.function.ExceptionSupplier<R, E> action) Invokes the specified actionstatic InvokerCreates a retrying invoker, where retries are spaced using the specified backoff intervals.
-
Method Details
-
invoke
-
invoke
-
direct
-
retrying
-