Package jenkins.plugins.collabnet.steps
Class SynchNonBlockingStepExecution<T>
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.steps.StepExecution
-
- jenkins.plugins.collabnet.steps.SynchNonBlockingStepExecution<T>
-
- Type Parameters:
T
- the type of the return value (may beVoid
)
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PublishWebhookStep.PublishWebhookStepExecution
public abstract class SynchNonBlockingStepExecution<T> extends org.jenkinsci.plugins.workflow.steps.StepExecution
Similar to SynchronousStepExecution (it executes synchronously too) but it does not block the CPS VM thread.- See Also:
StepExecution
, Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SynchNonBlockingStepExecution(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getStatus()
void
onResume()
protected abstract T
run()
Meat of the execution.boolean
start()
void
stop(Throwable cause)
If the computation is going synchronously, try to cancel that.
-
-
-
Method Detail
-
run
protected abstract T run() throws Exception
Meat of the execution. When this method returns, a step execution is over.- Throws:
Exception
-
start
public final boolean start() throws Exception
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
stop
public void stop(Throwable cause) throws Exception
If the computation is going synchronously, try to cancel that.- Overrides:
stop
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
onResume
public void onResume()
- Overrides:
onResume
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
getStatus
@Nonnull public String getStatus()
- Overrides:
getStatus
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
-
-