org.jclouds.gae.config
Class CurrentRequestExecutorServiceModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.gae.config.CurrentRequestExecutorServiceModule
All Implemented Interfaces:
com.google.inject.Module

@Beta
public class CurrentRequestExecutorServiceModule
extends com.google.inject.AbstractModule

Author:
Adrian Cole

Constructor Summary
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.
 
Method Summary
protected  void configure()
           
static com.google.common.util.concurrent.ListeningExecutorService currentRequestExecutorService()
           
protected  ExecutorService ioThreads()
           
static com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> memoizedCurrentRequestExecutorService()
           
protected  ExecutorService userThreads()
           
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentRequestExecutorServiceModule

public CurrentRequestExecutorServiceModule()

CurrentRequestExecutorServiceModule

public CurrentRequestExecutorServiceModule(com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> memoizedCurrentRequestExecutorService)
Used when you are creating multiple contexts in the same app.

Parameters:
memoizedCurrentRequestExecutorService -
See Also:
memoizedCurrentRequestExecutorService

CurrentRequestExecutorServiceModule

public CurrentRequestExecutorServiceModule(com.google.common.util.concurrent.ListeningExecutorService currentRequestExecutorService)
Used when you are creating multiple contexts in the same app.

Parameters:
currentRequestExecutorService -
See Also:
currentRequestExecutorService()
Method Detail

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

memoizedCurrentRequestExecutorService

public static com.google.common.base.Supplier<com.google.common.util.concurrent.ListeningExecutorService> memoizedCurrentRequestExecutorService()

currentRequestExecutorService

public static com.google.common.util.concurrent.ListeningExecutorService currentRequestExecutorService()

userThreads

@Provides
@Singleton
@Named(value="jclouds.user-threads")
protected ExecutorService userThreads()

ioThreads

@Provides
@Singleton
@Named(value="jclouds.io-worker-threads")
protected ExecutorService ioThreads()


Copyright © 2009-2012 jclouds. All Rights Reserved.