public static interface BuildRuleStrategy.StrategyBuildResult
Modifier and Type | Method and Description |
---|---|
void |
cancel(Throwable cause)
Indicates that the caller is no longer interested in the result and the strategy is free to
cancel pending work.
|
boolean |
cancelIfNotComplete(Throwable reason)
Tries to cancel the execution if work has not yet past the point of no return.
|
com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> |
getBuildResult()
A ListenableFuture for the build result.
|
static BuildRuleStrategy.StrategyBuildResult |
nonCancellable(com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> result)
A simple helper to make a StrategyBuildResult that can't be cancelled.
|
void cancel(Throwable cause)
boolean cancelIfNotComplete(Throwable reason)
com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> getBuildResult()
static BuildRuleStrategy.StrategyBuildResult nonCancellable(com.google.common.util.concurrent.ListenableFuture<Optional<BuildResult>> result)