void awaitHealthy() { monitor.enterWhenUninterruptibly(awaitHealthGuard); try { checkHealthy(); } finally { monitor.leave(); } }
void awaitStopped() { monitor.enterWhenUninterruptibly(stoppedGuard); monitor.leave(); }
void awaitHealthy() { monitor.enterWhenUninterruptibly(awaitHealthGuard); try { checkHealthy(); } finally { monitor.leave(); } }
void awaitStopped() { monitor.enterWhenUninterruptibly(stoppedGuard); monitor.leave(); }