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.
|
Method Summary |
long |
okToSleep()
Return <= 0 if need to stay awake. |
NO_TIME_SPECIFIED
static final long NO_TIME_SPECIFIED
- See Also:
- Constant Field Values
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.