public interface Contextualizer
| 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.
|
Runnable contextualize(Runnable runner)
runner - a runnable task<E extends Exception> org.wildfly.common.function.ExceptionRunnable<E> contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner)
E - the exception typerunner - a runnable task<T> Callable<T> contextualize(Callable<T> caller)
T - the return typerunner - a callable task<T> Supplier<T> contextualize(Supplier<T> supplier)
T - the return typerunner - a supplier task<T,E extends Exception> org.wildfly.common.function.ExceptionSupplier<T,E> contextualize(org.wildfly.common.function.ExceptionSupplier<T,E> supplier)
T - the return typeE - the exception typerunner - a supplier taskCopyright © 2020 JBoss by Red Hat. All rights reserved.