|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.flow.java.Continuation
public class Continuation
Continuation object to store the current execution. The continuation object can only used once.
Field Summary | |
---|---|
boolean |
capturing
|
boolean |
restoring
|
Constructor Summary | |
---|---|
Continuation(Continuation parent,
Object context)
Create a new continuation, which continue a previous continuation. |
|
Continuation(String functionName,
Object context)
Create new continuation. |
Method Summary | |
---|---|
static Continuation |
currentContinuation()
Return the continuation, which is associated to the current thread. |
void |
deregisterThread()
Unbind the continuation to running thread. |
Object |
getContext()
Return context object, which is associated to this continuation. |
String |
getFunctionName()
|
ContinuationStack |
getStack()
Return the stack, which is used to store the frame information. |
boolean |
isCapturing()
True, if the continuation freezes the stack trace, and stops the continuation. |
boolean |
isRestoring()
True, if the continuation restores the previous stack trace to the last invocation of suspend(). |
void |
registerThread()
Bind the continuation to running thread. |
static void |
suspend()
Suspend the running continuation or restore the suspended continuation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean restoring
public boolean capturing
Constructor Detail |
---|
public Continuation(String functionName, Object context)
public Continuation(Continuation parent, Object context)
Method Detail |
---|
public String getFunctionName()
public ContinuationStack getStack()
public Object getContext()
public static void suspend()
public boolean isRestoring()
public boolean isCapturing()
public void registerThread()
public void deregisterThread()
public static Continuation currentContinuation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |