@Internal public abstract class AbstractPlanExecutionPermitter extends Object implements PlanExecutionPermitter
Constructor and Description |
---|
AbstractPlanExecutionPermitter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPermittedToExecute(ImmutableChain chain,
ErrorCollection errorCollection)
Checks a condition in order to determine if the plan can be executed.
|
boolean |
isPermittedToExecute(ImmutableChain chain,
PlanResultKey resultKey,
ErrorCollection errorCollection)
Checks a condition in order to determine if the plan can be executed.
|
protected abstract boolean |
isPermittedToExecuteImpl(ImmutableChain chain,
PlanResultKey resultKey,
ErrorCollection errorCollection) |
void |
setChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter) |
public boolean isPermittedToExecute(@NotNull ImmutableChain chain, @NotNull ErrorCollection errorCollection)
PlanExecutionPermitter
PlanExecutionPermitter.isPermittedToExecute(ImmutableChain, PlanResultKey, ErrorCollection)
when build is restarted/continued.isPermittedToExecute
in interface PlanExecutionPermitter
public boolean isPermittedToExecute(@NotNull ImmutableChain chain, @Nullable PlanResultKey resultKey, @NotNull ErrorCollection errorCollection)
PlanExecutionPermitter
isPermittedToExecute
in interface PlanExecutionPermitter
resultKey
- key of a result, if it's restarted or continued buildpublic void setChainedExecutionPermitter(PlanExecutionPermitter chainedExecutionPermitter)
setChainedExecutionPermitter
in interface PlanExecutionPermitter
protected abstract boolean isPermittedToExecuteImpl(@NotNull ImmutableChain chain, @Nullable PlanResultKey resultKey, @NotNull ErrorCollection errorCollection)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.