|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EndActive
EndActive is related to the finalization of an active object. The finalization of the activity is done only once when the object stops to be active and becomes unusable. In case of a migration, an active object stops its activity before restarting on a new VM automatically without finalization.
An object implementing this interface can be invoked to perform the finalization work after the activity is ended. The object being reified as an active object can implement this interface or an external class can also be used.
It is generally the role of the body of the active object to perform the call on the object implementing this interface.
It is hard to ensure that the endActivity
method will indeed
be invoked at the end of the activity. Error
,
Exception
,
customized activity that never ends or sudden death of the JVM can prevents
this method to be called by the body of the active object.
Method Summary | |
---|---|
void |
endActivity(Body body)
Finalized the active object after the activity has been stopped. |
Method Detail |
---|
void endActivity(Body body)
body
- the body of the active object being finalized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |