SunSPOT API V3.0


com.sun.squawk
Interface Isolate.LifecycleListener

All Known Implementing Classes:
EDemoController
Enclosing class:
Isolate

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

handleLifecycleListenerEvent

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.

Parameters:
iso - the isolate that had the lifecycle event
eventKind - the lifecycle event that occurred. One of Isolate.SHUTDOWN_EVENT_MASK, Isolate.HIBERNATE_EVENT_MASK, or Isolate.UNHIBERNATE_EVENT_MASK
See Also:
Isolate.addLifecycleListener(com.sun.squawk.Isolate.LifecycleListener, int), Isolate.exit(int), Isolate.hibernate(), Isolate.unhibernate()

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.