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.AbstractModuleConfiguresListeningExecutorService. 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
Constructors Constructor Description ExecutorServiceModule()ExecutorServiceModule(com.google.common.util.concurrent.ListeningExecutorService userExecutor)ExecutorServiceModule(com.google.common.util.concurrent.ListeningExecutorService userExecutor, com.google.common.util.concurrent.ListeningExecutorService ioExecutor)Deprecated.ioExecutoris no longer used.ExecutorServiceModule(ExecutorService userExecutor)ExecutorServiceModule(ExecutorService userExecutor, ExecutorService ioExecutor)Deprecated.ioExecutoris no longer used.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure()-
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, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Constructor Detail
-
ExecutorServiceModule
public ExecutorServiceModule()
-
ExecutorServiceModule
@Deprecated public ExecutorServiceModule(@Named("jclouds.user-threads") ExecutorService userExecutor, ExecutorService ioExecutor)
Deprecated.ioExecutoris 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.ioExecutoris no longer used. This constructor will be removed in jclouds v2. UseExecutorServiceModule(ListeningExecutorService)instead.
-
ExecutorServiceModule
public ExecutorServiceModule(@Named("jclouds.user-threads") ExecutorService userExecutor)
-
ExecutorServiceModule
public ExecutorServiceModule(@Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor)
-
-