public abstract class AbstractExecutorProvidersConfigurator extends java.lang.Object implements BootstrapConfigurator
ExecutorServiceProvider
and
ScheduledExecutorServiceProvider
.Modifier and Type | Field and Description |
---|---|
private static java.util.function.Function<java.lang.Object,ExecutorServiceProvider> |
CAST_TO_EXECUTOR_PROVIDER |
private static java.util.function.Function<java.lang.Object,ScheduledExecutorServiceProvider> |
CAST_TO_SCHEDULED_EXECUTOR_PROVIDER |
Constructor and Description |
---|
AbstractExecutorProvidersConfigurator() |
Modifier and Type | Method and Description |
---|---|
protected void |
registerExecutors(InjectionManager injectionManager,
ComponentBag componentBag,
ExecutorServiceProvider defaultAsyncExecutorProvider,
ScheduledExecutorServiceProvider defaultScheduledExecutorProvider)
Retrieves registered
ExecutorServiceProvider and ScheduledExecutorServiceProvider by an application and
adds the default implementations of those interfaces to binds them into InjectionManager . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, postInit
private static final java.util.function.Function<java.lang.Object,ExecutorServiceProvider> CAST_TO_EXECUTOR_PROVIDER
private static final java.util.function.Function<java.lang.Object,ScheduledExecutorServiceProvider> CAST_TO_SCHEDULED_EXECUTOR_PROVIDER
public AbstractExecutorProvidersConfigurator()
protected void registerExecutors(InjectionManager injectionManager, ComponentBag componentBag, ExecutorServiceProvider defaultAsyncExecutorProvider, ScheduledExecutorServiceProvider defaultScheduledExecutorProvider)
ExecutorServiceProvider
and ScheduledExecutorServiceProvider
by an application and
adds the default implementations of those interfaces to binds them into InjectionManager
.injectionManager
- injection manager used for binding selected executor service providers.componentBag
- provides executor service providers registered by an application.defaultAsyncExecutorProvider
- default implementation of ExecutorServiceProvider
.defaultScheduledExecutorProvider
- default implementation of ScheduledExecutorServiceProvider
.