|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface of the Continuations manager.
The continuation manager maintains a forrest of WebContinuation
trees. Each tree defines the flow of control for a
user within the application.
A WebContinuation
is created for a continuation object
from the scripting language used. A continuation object in the
implementation of the scripting language is an opaque object
here. It is only stored inside the WebContinuation
,
without being interpreted in any way.
WebContinuation
Field Summary | |
static String |
ROLE
|
Method Summary | |
WebContinuation |
createWebContinuation(Object kont,
WebContinuation parentKont,
int timeToLive,
String interpreterId,
ContinuationsDisposer disposer)
Create a WebContinuation object given a native
continuation object and its parent. |
void |
displayAllContinuations()
Prints debug information about all web continuations into the log file. |
List |
getWebContinuationsDataBeanList()
Get a list of all continuations as WebContinuationDataBean objects. |
void |
invalidateWebContinuation(WebContinuation k)
Invalidates a WebContinuation . |
WebContinuation |
lookupWebContinuation(String id,
String interpreterId)
Given a WebContinuation id, retrieve the associated
WebContinuation object. |
Field Detail |
public static final String ROLE
Method Detail |
public WebContinuation createWebContinuation(Object kont, WebContinuation parentKont, int timeToLive, String interpreterId, ContinuationsDisposer disposer)
WebContinuation
object given a native
continuation object and its parent. If the parent continuation is
null, the WebContinuation
returned becomes the root
of a tree in the forrest.
kont
- an Object
valueparentKont
- a WebContinuation
valuetimeToLive
- an int
value indicating how long
in seconds this continuation will live in the server if not
accessedinterpreterId
- id of interpreter invoking continuation creationdisposer
- a ContinuationsDisposer
instance to called when
the continuation gets cleaned up.
WebContinuation
valueWebContinuation
public void invalidateWebContinuation(WebContinuation k)
WebContinuation
. This effectively
means that the continuation object associated with it will no
longer be accessible from Web pages. Invalidating a
WebContinuation
invalidates all the
WebContinuation
s which are children of it.
k
- a WebContinuation
valuepublic WebContinuation lookupWebContinuation(String id, String interpreterId)
WebContinuation
id, retrieve the associated
WebContinuation
object.
id
- a String
valueinterpreterId
- Id of an interpreter that queries for
the continuation
WebContinuation
object, null if no such
WebContinuation
could be found. Also null if
WebContinuation
was found but interpreter id does
not match the one that the continuation was initialy created for.public void displayAllContinuations()
WebContinuation.display()
public List getWebContinuationsDataBeanList()
WebContinuationDataBean
objects.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |