public class ContinuationPending
extends java.lang.RuntimeException
Context.executeScriptWithContinuations(Script, Scriptable)
and
Context.callFunctionWithContinuations(Callable, Scriptable, Object[])
when execution encounters a continuation captured by
Context.captureContinuation()
. Exception will contain the captured state needed to restart the
continuation with
Context.resumeContinuation(Object, Scriptable, Object)
.| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getApplicationState() |
java.lang.Object |
getContinuation()
Get continuation object.
|
void |
setApplicationState(java.lang.Object applicationState)
Store an arbitrary object that applications can use to associate their
state with the continuation.
|
public java.lang.Object getContinuation()
Context.resumeContinuation(Object, Scriptable, Object)
.public void setApplicationState(java.lang.Object applicationState)
applicationState - arbitrary application statepublic java.lang.Object getApplicationState()