| java.lang.Object org.apache.cocoon.components.flow.java.Continuation
Continuation | public class Continuation (Code) | | Continations object to store the current execution. The contiunation
object can only used once.
author: Stephan Michels author: Torsten Curdt version: CVS $Id: Continuation.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public static Continuation | currentContinuation() Return the continuation, which is associated to the
current thread. | public void | deregisterThread() Unbind the continuation to running thread. | public Object | getContext() Return context object, which is associated to this continuation. | public ContinuationStack | getStack() Return the stack, which is used to store the frame information. | public boolean | isCapturing() True, is the continuation freeze the strack trace, and stops the continuation. | public boolean | isRestoring() True, if the continuation restores the previous stack trace to the
last invocation of suspend(). | public void | registerThread() Bind the continuation to running thread. | public static void | suspend() Stop the running continuation. |
capturing | public boolean capturing(Code) | | |
restoring | public boolean restoring(Code) | | |
Continuation | public Continuation(Object context)(Code) | | Create new continuation.
|
Continuation | public Continuation(Continuation parent, Object context)(Code) | | Create a new continuation, which continue a previous continuation.
|
currentContinuation | public static Continuation currentContinuation()(Code) | | Return the continuation, which is associated to the
current thread.
|
deregisterThread | public void deregisterThread()(Code) | | Unbind the continuation to running thread.
|
getContext | public Object getContext()(Code) | | Return context object, which is associated to this continuation.
|
isCapturing | public boolean isCapturing()(Code) | | True, is the continuation freeze the strack trace, and stops the continuation.
|
isRestoring | public boolean isRestoring()(Code) | | True, if the continuation restores the previous stack trace to the
last invocation of suspend().
|
registerThread | public void registerThread()(Code) | | Bind the continuation to running thread.
|
suspend | public static void suspend()(Code) | | Stop the running continuation.
|
|
|