4748495051525354
return new SemaphoreWaitNotifyKey(name, "acquire"); } @Override public boolean shouldWait() { Permit permit = getPermit(); return getWaitTimeout() != 0 && !permit.isAvailable(permitCount); }
293031323334353637
super(name, permitCount, firstCaller); } @Override public void run() throws Exception { Permit permit = getPermit(); permit.release(permitCount, firstCaller); response = true; }
333435363738394041
super(name, permitCount); } @Override public void run() throws Exception { Permit permit = getPermit(); permit.release(permitCount, getCallerUuid()); response = true; }
303132333435363738
super(name, -1, firstCaller); } @Override public void run() throws Exception { Permit permit = getPermit(); permit.memberRemoved(firstCaller); response = true; }
3031323334353637
super(name, -1); } @Override public void run() throws Exception { Permit permit = getPermit(); response = permit.drain(getCallerUuid()); }
super(name, permitCount, firstCaller); } @Override public void run() throws Exception { Permit permit = getPermit(); permit.drain(firstCaller); response = true; }
super(name, permitCount); } @Override public void run() throws Exception { Permit permit = getPermit(); response = permit.reduce(permitCount); }