Public Member Functions | |
void | done (Completion comp) |
void | working (Completion comp) |
Package Functions | |
DaemonCallbackImpl (Logger logger) | |
void | prepareWaitForDone (String srvName) |
boolean | waitForDone (long timeout, TimeUnit unit) throws InterruptedException |
Completion | getLastDoneCompletion () |
Private Member Functions | |
String | isoDateFromOmgTime (long omgTime) |
Private Attributes | |
final Logger | logger |
volatile String | srvName |
volatile CountDownLatch | syncDone |
volatile Completion | lastDoneCompletion |
|
|
|
|
|
|
|
|
|
Must be called before the call that can trigger the callback to done(Completion) and before waitForDone(long, TimeUnit), so as to (re-)activate waiting for the done callback. This ensures that we don't miss the done callback even if it occurs faster than the client thread can call waitForDone.
|
|
prepareWaitForDone() must be called first.
|
|
|
|
|
|
|
|
|
|
|