Package org.wildfly.clustering.context
Class CompositeContextualizer
java.lang.Object
org.wildfly.clustering.context.CompositeContextualizer
- All Implemented Interfaces:
Contextualizer
A
Contextualizer decorator that creates contextual tasks from a multiple contextualizers.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeContextualizer(List<Contextualizer> contextualizers) CompositeContextualizer(Contextualizer... contextualizers) -
Method Summary
Modifier and TypeMethodDescriptioncontextualize(Runnable runner) Decorates the specified runner with a given context.<T> Callable<T>contextualize(Callable<T> caller) Decorates the specified caller with a given context.<T> Supplier<T>contextualize(Supplier<T> supplier) Decorates the specified supplier with a given context.<E extends Exception>
org.wildfly.common.function.ExceptionRunnable<E>contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner) Decorates the specified runner with a given context.<T,E extends Exception>
org.wildfly.common.function.ExceptionSupplier<T,E> contextualize(org.wildfly.common.function.ExceptionSupplier<T, E> supplier) Decorates the specified supplier with a given context.
-
Constructor Details
-
CompositeContextualizer
-
CompositeContextualizer
-
-
Method Details
-
contextualize
Description copied from interface:ContextualizerDecorates the specified runner with a given context.- Specified by:
contextualizein interfaceContextualizer- Parameters:
runner- a runnable task- Returns:
- a contextual runner
-
contextualize
public <E extends Exception> org.wildfly.common.function.ExceptionRunnable<E> contextualize(org.wildfly.common.function.ExceptionRunnable<E> runner) Description copied from interface:ContextualizerDecorates the specified runner with a given context.- Specified by:
contextualizein interfaceContextualizer- Type Parameters:
E- the exception type- Parameters:
runner- a runnable task- Returns:
- a contextual runner
-
contextualize
Description copied from interface:ContextualizerDecorates the specified caller with a given context.- Specified by:
contextualizein interfaceContextualizer- Type Parameters:
T- the return type- Returns:
- a contextual caller
-
contextualize
Description copied from interface:ContextualizerDecorates the specified supplier with a given context.- Specified by:
contextualizein interfaceContextualizer- Type Parameters:
T- the return type- Returns:
- a contextual supplier
-
contextualize
public <T,E extends Exception> org.wildfly.common.function.ExceptionSupplier<T,E> contextualize(org.wildfly.common.function.ExceptionSupplier<T, E> supplier) Description copied from interface:ContextualizerDecorates the specified supplier with a given context.- Specified by:
contextualizein interfaceContextualizer- Type Parameters:
T- the return typeE- the exception type- Returns:
- a contextual supplier
-