@Override public void run() { try { bookie.suspendProcessing(); l.countDown(); Thread.sleep(seconds * 1000); bookie.resumeProcessing(); } catch (Exception e) { LOG.error("Error suspending bookie", e); } } };
@Override public void run() { try { bookie.suspendProcessing(); l.await(); bookie.resumeProcessing(); } catch (Exception e) { LOG.error("Error suspending bookie", e); } } };