Interface BuildRuleStrategy.StrategyBuildResult

    • Method Detail

      • cancel

        void cancel​(Throwable cause)
        Indicates that the caller is no longer interested in the result and the strategy is free to cancel pending work.
      • cancelIfNotComplete

        boolean cancelIfNotComplete​(Throwable reason)
        Tries to cancel the execution if work has not yet past the point of no return.
        Whether cancellation was successful. If successful, the strategy might continue doing more work, but it must not make changes to any rule outputs. If cancellation is unsuccessful, the strategy should continue execution of the rule.
      • getBuildResult<Optional<BuildResult>> getBuildResult()
        A ListenableFuture for the build result.