180181182183184185186187188189190
{ @Override public void onSuccess(ZkWorker zkWorker) { synchronized (waitingForMonitor) { waitingFor.decrement(); waitingForMonitor.notifyAll(); } } @Override
189190191192193194195196197198199
@Override public void onFailure(Throwable throwable) { synchronized (waitingForMonitor) { waitingFor.decrement(); waitingForMonitor.notifyAll(); } } } );
213214215216217218219220221222223
); removeWorker(worker); break; case INITIALIZED: synchronized (waitingForMonitor) { waitingFor.decrement(); waitingForMonitor.notifyAll(); } default: break; }
267268269270271272273274275276277
MutableInt i = map.get(obj); if(i == null) { return false; } i.decrement(); if(i.intValue() == 0) { map.remove(obj); }