public class NamespaceContextExecutor extends Object implements ContextualExecutor
| Constructor and Description |
|---|
NamespaceContextExecutor() |
| Modifier and Type | Method and Description |
|---|---|
<T> Callable<T> |
contextualize(Callable<T> caller)
Decorates the specified caller with a given context.
|
<E extends Exception> |
contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner)
Decorates the specified runner with a given context.
|
<T,E extends Exception> |
contextualize(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
Decorates the specified supplier with a given context.
|
Runnable |
contextualize(Runnable runner)
Decorates the specified runner with a given context.
|
<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.
|
<E extends Exception> |
execute(org.wildfly.common.function.ExceptionRunnable<E> runner) |
<T,E extends Exception> |
execute(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
Executes the specified supplier with a given context.
|
void |
execute(Runnable runner) |
<T> T |
execute(Supplier<T> supplier)
Executes the specified supplier with a given context.
|
public <E extends Exception> void execute(org.wildfly.common.function.ExceptionRunnable<E> runner) throws E extends Exception
E extends Exceptionpublic <T> T execute(Callable<T> caller) throws Exception
ContextualExecutorexecute in interface ContextualExecutorT - the return typecaller - a callable taskException - if execution failspublic <T> T execute(Supplier<T> supplier)
ContextualExecutorexecute in interface ContextualExecutorT - the return typesupplier - a supplier taskpublic <T,E extends Exception> T execute(org.wildfly.common.function.ExceptionSupplier<T,E> supplier) throws E extends Exception
ContextualExecutorexecute in interface ContextualExecutorT - the return typeE - the exception typesupplier - a supplier taskE - if execution failsE extends Exceptionpublic Runnable contextualize(Runnable runner)
Contextualizercontextualize in interface ContextualExecutorcontextualize in interface Contextualizerrunner - a runnable taskpublic <E extends Exception> org.wildfly.common.function.ExceptionRunnable<E> contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner)
Contextualizercontextualize in interface ContextualExecutorcontextualize in interface ContextualizerE - the exception typerunner - a runnable taskpublic <T> Callable<T> contextualize(Callable<T> caller)
Contextualizercontextualize in interface ContextualExecutorcontextualize in interface ContextualizerT - the return typepublic <T> Supplier<T> contextualize(Supplier<T> supplier)
Contextualizercontextualize in interface ContextualExecutorcontextualize in interface ContextualizerT - the return typepublic <T,E extends Exception> org.wildfly.common.function.ExceptionSupplier<T,E> contextualize(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
Contextualizercontextualize in interface ContextualExecutorcontextualize in interface ContextualizerT - the return typeE - the exception typeCopyright © 2022 JBoss by Red Hat. All rights reserved.