Package com.google.gerrit.server.config
Class SysExecutorModule
java.lang.Object
com.google.inject.AbstractModule
com.google.gerrit.server.config.SysExecutorModule
- All Implemented Interfaces:
- com.google.inject.Module
public class SysExecutorModule
extends com.google.inject.AbstractModule
Module providing different executors.
 
This module is intended to be installed at the top level when creating a sysInjector
 in Daemon or similar, not nested in another module. This ensures the module can be
 swapped out for the googlesource.com implementation.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcom.google.common.util.concurrent.ListeningExecutorServiceprovideCacheRefreshExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) provideFanOutExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) provideReceiveCommitsExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) provideSendEmailExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) Methods inherited from class com.google.inject.AbstractModuleaddError, 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- 
SysExecutorModulepublic SysExecutorModule()
 
- 
- 
Method Details- 
configureprotected void configure()- Overrides:
- configurein class- com.google.inject.AbstractModule
 
- 
provideReceiveCommitsExecutor@Provides public ExecutorService provideReceiveCommitsExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) 
- 
provideSendEmailExecutor@Provides public ExecutorService provideSendEmailExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) 
- 
provideFanOutExecutor@Provides public ExecutorService provideFanOutExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) 
- 
provideCacheRefreshExecutor@Provides public com.google.common.util.concurrent.ListeningExecutorService provideCacheRefreshExecutor(org.eclipse.jgit.lib.Config config, WorkQueue queues) 
 
-