
public class BlockingFinishState extends Object
| Constructor and Description |
|---|
BlockingFinishState(String creatorName)
Create a new finish state for the given activity.
|
| Modifier and Type | Method and Description |
|---|---|
List<Throwable> |
exceptions()
Create a new stack or return current one.
|
void |
notifySubActivitySpawn()
An activity created under this finish has been created.
|
void |
notifySubActivityTermination()
An activity created under this finish has terminated.
|
void |
notifySubActivityTermination(Throwable throwable)
An activity created under this finish has terminated abruptly.
|
void |
pushException(Throwable throwable)
Push an exception onto the stack.
|
String |
toString()
Return a string to be used in Report messages.
|
void |
waitForFinish()
This method returns only when all spawned activity registered with this
FinishState have terminated either normally or abruptly.
|
public BlockingFinishState(String creatorName)
creatorName - The name of the activity creating the finish state.public final void waitForFinish()
public final void notifySubActivitySpawn()
public final void notifySubActivityTermination()
public final void notifySubActivityTermination(Throwable throwable)
throwable - -- The exception thrown by the activity that terminated abruptly.public final void pushException(Throwable throwable)
throwable - Thrown exceptionpublic final List<Throwable> exceptions()
Copyright © 2014 Rice University - Department of Computer Science. All rights reserved.