Class 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 Detail

      • SysExecutorModule

        public SysExecutorModule()
    • Method Detail

      • 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)