org.mbari.siam.distributed
Interface SleepRollCallListener

All Known Implementing Classes:
CpuLeaseSleepRollcallListener

public interface SleepRollCallListener

Interface to allow interested parties to add callbacks to SleepManager. Allows anyone to specify whether SleepManager can go to sleep, and if so, when to wake up.


Field Summary
static long NO_TIME_SPECIFIED
           
 
Method Summary
 long okToSleep()
          Return <= 0 if need to stay awake.
 

Field Detail

NO_TIME_SPECIFIED

static final long NO_TIME_SPECIFIED
See Also:
Constant Field Values
Method Detail

okToSleep

long okToSleep()
Return <= 0 if need to stay awake. Else, return number of milliseconds until we need to wake up.



Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.