Class DefaultExecutorService

java.lang.Object
org.wildfly.clustering.context.ContextualExecutorService
org.wildfly.clustering.context.DefaultExecutorService
All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class DefaultExecutorService extends ContextualExecutorService
ExecutorService that performs contextual execution of submitted tasks.
Author:
Paul Ferraro
  • Constructor Details

    • DefaultExecutorService

      public DefaultExecutorService(Function<ThreadFactory, ExecutorService> factory, ClassLoader loader)
      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

      public DefaultExecutorService(ExecutorService executor, ClassLoader loader)
      Constructs a contextual executor service from the specified executor and class loader.
      Parameters:
      executor - the decorated executor service
      loader - the target class loader context