|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Isolate.LifecycleListener
Monitor isolate lifecycle events such as shutdown, hibernate, and unhibernate. Isolate life-cycle events can be
monitored by implementing LifecycleListener, and registering it with the isolate using
Isolate.addLifecycleListener(com.sun.squawk.Isolate.LifecycleListener, int), specifying the kind of event to monitor.
An LifecycleListener can be registered for more than one event kind.
| Method Summary | |
|---|---|
void |
handleLifecycleListenerEvent(Isolate iso,
int eventKind)
This method will be called when the lifecycle event occurs on the isolate that this listener was registered for using addLifecycleListener. |
| Method Detail |
|---|
void handleLifecycleListenerEvent(Isolate iso,
int eventKind)
addLifecycleListener.
iso - the isolate that had the lifecycle eventeventKind - the lifecycle event that occurred.
One of Isolate.SHUTDOWN_EVENT_MASK, Isolate.HIBERNATE_EVENT_MASK, or Isolate.UNHIBERNATE_EVENT_MASKIsolate.addLifecycleListener(com.sun.squawk.Isolate.LifecycleListener, int),
Isolate.exit(int),
Isolate.hibernate(),
Isolate.unhibernate()
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||