Class ParallelRuleKeyCalculator<T>


  • public class ParallelRuleKeyCalculator<T>
    extends Object
    Calculates RuleKey, bottom-up, using tree parallelism.
    • Constructor Detail

      • ParallelRuleKeyCalculator

        public ParallelRuleKeyCalculator​(com.google.common.util.concurrent.ListeningExecutorService service,
                                         RuleKeyFactory<T> ruleKeyFactory,
                                         RuleDepsCache ruleDepsCache,
                                         java.util.function.BiFunction<BuckEventBus,​BuildRule,​Scope> ruleKeyCalculationScope)
    • Method Detail

      • calculate

        public com.google.common.util.concurrent.ListenableFuture<T> calculate​(BuckEventBus buckEventBus,
                                                                               BuildRule rule)
        Returns:
        a ListenableFuture wrapping the result of calculating the RuleKey of the given BuildRule.