Lines Matching defs:attempt
78 * if (cond.attempt(10)) { // try the condition for 10 ms
156 * For example, here is a Cell class that uses attempt to back-off
168 * if (other.lock.attempt(100)) {
195 * if (!b.lock.attempt(0))
222 * in acquire and attempt(msec) if interruption
227 * Timed versions of attempt report failure via return value.
231 * if (!c.attempt(timeval)) throw new TimeoutException(timeval);
259 * if (lock.attempt(0))
265 * if (lock.attempt(waitTime))
303 * Implementations generally can only attempt to return as soon as possible
321 public boolean attempt(long msecs) throws InterruptedException;