public abstract class BlockingExecutable extends NodeImpl implements Executable
Constructor and Description |
---|
BlockingExecutable() |
BlockingExecutable(String defaultId) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the task.
|
protected void |
cancelExecution()
Called when cancel successfully acquires the finish execution lock.
|
void |
execute()
Implementation of execute.
|
protected void |
finishExecution()
Call this method to finish execution.
|
ExecutionContext |
getExecutionContext() |
protected boolean |
getFinishExecutionLock()
Request the lock to finish execution.
|
void |
setExecutionContext(ExecutionContext executionContext) |
protected abstract void |
startExecution()
Start actual execution.
|
assignParent, assignParent, assignParents, getId, getLocalId, getParent, setBeanName, setId, setLocalId, setParent
clearProperties, getKeys, getProperty, removeProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
public BlockingExecutable()
public BlockingExecutable(String defaultId)
public ExecutionContext getExecutionContext()
public void setExecutionContext(ExecutionContext executionContext)
setExecutionContext
in interface Executable
public final void execute()
execute
in interface Executable
protected abstract void startExecution()
protected boolean getFinishExecutionLock()
protected void finishExecution()
public void cancel()
cancel
in interface Executable
protected void cancelExecution()
Copyright © 2013. All Rights Reserved.