public abstract class SuspendableActivity extends HabaneroActivity
Modifier and Type | Field and Description |
---|---|
protected Coroutine |
coroutine
Task supporting a continuation.
|
executionException, launchedFinishState, listenerList, rootFinishState
Modifier | Constructor and Description |
---|---|
protected |
SuspendableActivity(String activityName,
HjPlace hjPlace)
Constructor for HabaneroActivity.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkSuspendableOperation()
Validates the use of a suspendable operation by this activity.
|
protected boolean |
completedExecution()
Return true if the task completed execution, else return false if the task was suspended.
|
abstract void |
executeBody()
This method represents the body of the task.
|
void |
executeBodyGuarded() |
protected void |
executeTask() |
protected boolean |
isAborted() |
protected void |
prepareToCompleteFinish() |
void |
prepareToRunInFinish()
prepareToRunInFinish.
|
protected void |
processCoroutine() |
protected boolean |
shouldBypassExecution()
Returns true if the activity should be skipped as it has already been executed.
|
currentFinishState, finalizeActivitySpawn, finalizeTermination, finalizeTermination, finalizeTerminationCleanup, handleException, id, join, name, newFinishState, notifyActivitySpawn, notifyResumption, notifySuspension, place, pushException, registerListener, retrieveTargetFinishState, run, setRootActivityFinishState, startFinish, stopFinish, toString
protected Coroutine coroutine
protected void checkSuspendableOperation()
checkSuspendableOperation
in class HabaneroActivity
protected final boolean shouldBypassExecution()
shouldBypassExecution
in class HabaneroActivity
public final void prepareToRunInFinish()
prepareToRunInFinish.
prepareToRunInFinish
in class HabaneroActivity
protected final void prepareToCompleteFinish()
protected void executeTask()
executeTask
in class HabaneroActivity
protected void processCoroutine()
public final void executeBodyGuarded() throws SuspendableException
SuspendableException
protected boolean completedExecution()
HabaneroActivity
completedExecution
in class HabaneroActivity
protected boolean isAborted()
public abstract void executeBody() throws SuspendableException
SuspendableException
- to mark that the body contains a suspendable condition.Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.