| 接口 | 说明 |
|---|---|
| ResourceLifecycle<T> | |
| Watchdog.JobInterrupttedHandler | |
| Watchdog.WatchJob |
| 类 | 说明 |
|---|---|
| ConcurrentResourceContainer<T> | |
| TrafficLight |
red/green light: thread will be blocked when red light is on until the light
turns to green.
|
| Watchdog |
a watchdog is a controllable thread who does the
Watchdog.WatchJob at
intervals and takes orders such as Watchdog.suspend(), Watchdog.resume() or
Watchdog.stop() from the caller. of course we can view its status at any time
by calling Watchdog.isJobDoing(), Watchdog.isSleeping() or
Watchdog.isSuspended(). |
Copyright © 2017. All rights reserved.