Method Summary |
|
public synchronized void | addRelatedId(String id) [PRIVATE AND UNSUPPORTED] Associates the ID of another continuation to
this continuation. |
public static void | clearActiveContext() Clears the active currently continuation context for the executing thread. |
public ContinuationContext | clone() [PRIVATE AND UNSUPPORTED] Creates a cloned instance of this
continuation context, this clone is not a perfect copy but is intended
to be a child continuation and all context data is setup for that. |
public static ContinuationContext | createOrResetContext(Object executingInstance) [PRIVATE AND UNSUPPORTED] Creates a new continuation context or resets
its expiration time. |
public void | deactivate() Makes sure that this
ContinuationContext is not the active
one. |
public CallState | getActiveCallState() Retrieves the call state that is active during this continuation. |
public static ContinuationContext | getActiveContext() Retrieves the currently active continuation for the executing thread. |
public static String | getActiveContextId() Retrieves the identifier of the currently active continuation for the
current thread. |
public Object | getCallAnswer() Retrieves the answer that the call continuation stored in this context. |
public T | getContinuable() Returns the object instance in which this continuation was executing. |
public CallState | getCreatedCallState() Retrieves this continuation's call continuation creation state. |
public String | getId() Retrieves the continuation ID. |
public int | getLabel() [PRIVATE AND UNSUPPORTED] Retrieves the number of the bytecode label
where the continuation has to resume execution from. |
public static ContinuationContext | getLastContext() Retrieves the last active continuation for the executing thread. |
public ContinuationStack | getLocalStack() [PRIVATE AND UNSUPPORTED] Retrieves the local operand stack of this
continuation. |
public ContinuationStack | getLocalVars() [PRIVATE AND UNSUPPORTED] Retrieves the local variable stack of this
continuation. |
public ContinuationManager | getManager() Retrieves the manager of this
ContinuationContext . |
public ContinuationContext | getParentContext() Retrieves the parent
ContinuationContext of this
ContinuationContext instance. |
public String | getParentContextId() Retrieves the unique identifier of the parent continuation of this
ContinuationContext instance. |
public String | getParentId() Retrieves the ID of this continuation's parent. |
long | getStart() |
public boolean | isPaused() Indicates whether this continuation is actually paused and can be resumed. |
public void | registerContext() Registers this continuation in its manager, so that it can be retrieved later. |
public synchronized void | remove() Removes this
ContinuationContext instance from its
ContinuationManager . |
public void | removeContextTree() Removes the entire continuation tree that this
ContinuationContext instance belongs to from its
ContinuationManager . |
synchronized void | resetId() |
public synchronized void | setActiveCallState(CallState callState) Sets the active call state for this continuation.
This mainly passes on the call state that was created during a call
continuation. |
public static void | setActiveContext(ContinuationContext context) Replaces the active continuation context for the executing thread. |
public synchronized void | setCallAnswer(Object answer) Set the answer to a call continuation. |
public synchronized void | setCreatedCallState(CallState createdCallState) Sets the call continuation's state when a new call continuation is
created. |
public synchronized void | setLabel(int label) [PRIVATE AND UNSUPPORTED] Set the number of the bytecode label where
the continuation has to resume execution from. |
synchronized void | setManager(ContinuationManager manager) |
public synchronized void | setParentId(String id) [PRIVATE AND UNSUPPORTED] Set the ID of this continuation's parent. |
public synchronized void | setPaused(boolean paused) [PRIVATE AND UNSUPPORTED] Sets whether the continuation if paused. |