|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContinuationsManager
The interface of the Continuations manager.
The continuation manager maintains a forest 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()
Deprecated. Use getForest() . This method will be removed from
the interface. |
Set |
getForest()
Get a set of all web continuations. |
List |
getWebContinuationsDataBeanList()
Deprecated. Use getForest() . This method will be removed. |
void |
invalidateWebContinuation(WebContinuation k)
Invalidates a WebContinuation . |
WebContinuation |
lookupWebContinuation(String id,
String interpreterId)
Given a WebContinuation id, retrieve the associated
WebContinuation object. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
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 forest.
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
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
valueWebContinuation 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 initially created for.void displayAllContinuations()
getForest()
. This method will be removed from
the interface.
List getWebContinuationsDataBeanList()
getForest()
. This method will be removed.
WebContinuationDataBean
objects.
Set getForest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |