Class SysExecutorModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public class SysExecutorModule
    extends com.google.inject.AbstractModule
    Module providing the ReceiveCommitsExecutor.

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

        @Provides
        public ExecutorService createReceiveCommitsExecutor​(org.eclipse.jgit.lib.Config config,
                                                            WorkQueue queues)
      • createSendEmailExecutor

        @Provides
        public ExecutorService createSendEmailExecutor​(org.eclipse.jgit.lib.Config config,
                                                       WorkQueue queues)
      • createFanOutExecutor

        @Provides
        public ExecutorService createFanOutExecutor​(org.eclipse.jgit.lib.Config config,
                                                    WorkQueue queues)