Class DefaultExecutorService
java.lang.Object
org.wildfly.clustering.context.ContextualExecutorService
org.wildfly.clustering.context.DefaultExecutorService
- All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService
ExecutorService that performs contextual execution of submitted tasks.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExecutorService(ExecutorService executor, ClassLoader loader) Constructs a contextual executor service from the specified executor and class loader.DefaultExecutorService(Function<ThreadFactory, ExecutorService> factory, ClassLoader loader) Constructs a contextual executor service from the default contextualizer factory. -
Method Summary
Methods inherited from class ContextualExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExecutorService
close
-
Constructor Details
-
DefaultExecutorService
Constructs a contextual executor service from the default contextualizer factory.- Parameters:
factory- a function creating an executor service for a given thread factory.loader- the target class loader context
-
DefaultExecutorService
Constructs a contextual executor service from the specified executor and class loader.- Parameters:
executor- the decorated executor serviceloader- the target class loader context
-