Package org.jclouds.concurrent.config
Class ExecutorServiceModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.concurrent.config.ExecutorServiceModule
- All Implemented Interfaces:
com.google.inject.Module
- Direct Known Subclasses:
EnterpriseConfigurationModule
public class ExecutorServiceModule
extends com.google.inject.AbstractModule
Configures
ListeningExecutorService
.
Note that this uses threads.
This extends the underlying Future to expose a description (the task's toString) and the submission context (stack trace). The submission stack trace is appended to relevant stack traces on exceptions that are returned, so the user can see the logical chain of execution (in the executor, and where it was passed to the executor).
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorServiceModule
(com.google.common.util.concurrent.ListeningExecutorService userExecutor) ExecutorServiceModule
(com.google.common.util.concurrent.ListeningExecutorService userExecutor, com.google.common.util.concurrent.ListeningExecutorService ioExecutor) Deprecated.ExecutorServiceModule
(ExecutorService userExecutor) ExecutorServiceModule
(ExecutorService userExecutor, ExecutorService ioExecutor) Deprecated.ioExecutor
is no longer used. -
Method Summary
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
ExecutorServiceModule
public ExecutorServiceModule() -
ExecutorServiceModule
@Deprecated public ExecutorServiceModule(@Named("jclouds.user-threads") ExecutorService userExecutor, ExecutorService ioExecutor) Deprecated.ioExecutor
is no longer used. This constructor will be removed in jclouds v2. UseExecutorServiceModule(ExecutorService)
instead. -
ExecutorServiceModule
@Deprecated public ExecutorServiceModule(@Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor, com.google.common.util.concurrent.ListeningExecutorService ioExecutor) Deprecated.ioExecutor
is no longer used. This constructor will be removed in jclouds v2. UseExecutorServiceModule(ListeningExecutorService)
instead. -
ExecutorServiceModule
-
ExecutorServiceModule
public ExecutorServiceModule(@Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor)
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
ioExecutor
is no longer used.