public interface ContextualExecutor extends Contextualizer, Executor
| Modifier and Type | Method and Description |
|---|---|
default <T> Callable<T> |
contextualize(Callable<T> caller)
Decorates the specified caller with a given context.
|
default <E extends Exception> |
contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner)
Decorates the specified runner with a given context.
|
default <T,E extends Exception> |
contextualize(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
Decorates the specified supplier with a given context.
|
default Runnable |
contextualize(Runnable runner)
Decorates the specified runner with a given context.
|
default <T> Supplier<T> |
contextualize(Supplier<T> supplier)
Decorates the specified supplier with a given context.
|
<T> T |
execute(Callable<T> caller)
Executes the specified caller with a given context.
|
<T,E extends Exception> |
execute(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
Executes the specified supplier with a given context.
|
<T> T |
execute(Supplier<T> supplier)
Executes the specified supplier with a given context.
|
<T> T execute(Callable<T> caller) throws Exception
T - the return typecaller - a callable taskException - if execution fails<T> T execute(Supplier<T> supplier)
T - the return typesupplier - a supplier task<T,E extends Exception> T execute(org.wildfly.common.function.ExceptionSupplier<T,E> supplier) throws E extends Exception
T - the return typeE - the exception typesupplier - a supplier taskE - if execution failsE extends Exceptiondefault Runnable contextualize(Runnable runner)
Contextualizercontextualize in interface Contextualizerrunner - a runnable taskdefault <E extends Exception> org.wildfly.common.function.ExceptionRunnable<E> contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner)
Contextualizercontextualize in interface ContextualizerE - the exception typerunner - a runnable taskdefault <T> Callable<T> contextualize(Callable<T> caller)
Contextualizercontextualize in interface ContextualizerT - the return typedefault <T> Supplier<T> contextualize(Supplier<T> supplier)
Contextualizercontextualize in interface ContextualizerT - the return typedefault <T,E extends Exception> org.wildfly.common.function.ExceptionSupplier<T,E> contextualize(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
Contextualizercontextualize in interface ContextualizerT - the return typeE - the exception typeCopyright © 2021 JBoss by Red Hat. All rights reserved.