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 Details

    • SysExecutorModule

      public SysExecutorModule()
  • Method Details

    • configure

      protected void configure()
      Overrides:
      configure in 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)