@Beta
public class CurrentRequestExecutorServiceModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
CurrentRequestExecutorServiceModule() |
CurrentRequestExecutorServiceModule(com.google.common.util.concurrent.ListeningExecutorService currentRequestExecutorService)
Used when you are creating multiple contexts in the same app.
|
CurrentRequestExecutorServiceModule(com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> memoizedCurrentRequestExecutorService)
Used when you are creating multiple contexts in the same app.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
static com.google.common.util.concurrent.ListeningExecutorService |
currentRequestExecutorService() |
protected com.google.common.util.concurrent.ListeningExecutorService |
ioExecutor() |
static com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> |
memoizedCurrentRequestExecutorService() |
protected com.google.common.util.concurrent.ListeningExecutorService |
userExecutor() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public CurrentRequestExecutorServiceModule()
public CurrentRequestExecutorServiceModule(com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> memoizedCurrentRequestExecutorService)
memoizedCurrentRequestExecutorService
- memoizedCurrentRequestExecutorService
public CurrentRequestExecutorServiceModule(com.google.common.util.concurrent.ListeningExecutorService currentRequestExecutorService)
currentRequestExecutorService
- currentRequestExecutorService()
protected void configure()
configure
in class com.google.inject.AbstractModule
public static com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> memoizedCurrentRequestExecutorService()
public static com.google.common.util.concurrent.ListeningExecutorService currentRequestExecutorService()
@Provides @Singleton @Named(value="jclouds.user-threads") protected com.google.common.util.concurrent.ListeningExecutorService userExecutor()
@Provides @Singleton @Named(value="jclouds.io-worker-threads") protected com.google.common.util.concurrent.ListeningExecutorService ioExecutor()
Copyright © 2009-2013 jclouds. All Rights Reserved.