public class ExecutorServiceModule
extends com.google.inject.AbstractModule
ExecutorService
.
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 and Description |
---|
ExecutorServiceModule() |
ExecutorServiceModule(ExecutorService userThreads,
ExecutorService ioThreads) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
@Inject public ExecutorServiceModule(@Named(value="jclouds.user-threads") ExecutorService userThreads, @Named(value="jclouds.io-worker-threads") ExecutorService ioThreads)
public ExecutorServiceModule()
Copyright © 2009-2012 jclouds. All Rights Reserved.