|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.core.AlarmClock
public class AlarmClock
AlarmClock lets a service thread go to sleep in such a way that SleepManager could also put the processor to sleep while the service thread is sleeping, but the processor will wake up in time for the thread wakeup.
| Field Summary | |
|---|---|
static java.lang.String |
SCHEDULE_NAME
|
| Constructor Summary | |
|---|---|
AlarmClock(DeviceService service)
|
|
| Method Summary | |
|---|---|
void |
snooze(int seconds)
Put thread to sleep for specified seconds; indicate to SleepManager that processor could also sleep for duration of the thread's sleep. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SCHEDULE_NAME
| Constructor Detail |
|---|
public AlarmClock(DeviceService service)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void snooze(int seconds)
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||