|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HLS
An HLS is registered with activities to be informed of their lifecycle and to augment the basic notion of what an activity is. Currently each HLS is registered globally so that all activities on all threads know about them. However, we may want to have finer granularity such that an HLS may only be registered with a specific thread.
Method Summary | |
---|---|
void |
begun()
An activity has begun and is active on the current thread. |
Outcome |
complete(CompletionStatus cs)
The current activity is completing with the specified completion status. |
void |
completed()
The activity has completed and is still active on the current thread. |
Context |
context()
Return the context augmentation for this HLS, if any on the current activity, i.e., the activity active on the current thread. |
String |
identity()
The HLS name. |
int |
priority()
The activity service maintains a priority ordered list of HLS implementations. |
void |
resumed()
The activity has been resumed on the current thread and is active on that thread. |
void |
suspended()
The activity is being suspended, but is still active on the current thread. |
Method Detail |
---|
void begun() throws SystemException
SystemException
- Thrown if an error occurs. Any error
will cause the activity to be failed.Outcome complete(CompletionStatus cs) throws SystemException
cs
- The completion status to use.
SystemException
- Thrown if an error occurs. Any error
will cause the activity to be failed.void suspended() throws SystemException
SystemException
void resumed() throws SystemException
SystemException
void completed() throws SystemException
SystemException
String identity() throws SystemException
SystemException
int priority() throws SystemException
SystemException
Context context() throws SystemException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |