Lines Matching defs:tryLock
82 * {@link ReadLock#tryLock()} and {@link WriteLock#tryLock()} methods
554 * Performs tryLock for write, enabling barging in both modes.
575 * Performs tryLock for read, enabling barging in both modes.
786 * fair ordering policy, a call to {@code tryLock()}
792 * for this lock, then use {@link #tryLock(long, TimeUnit)
793 * tryLock(0, TimeUnit.SECONDS) } which is almost equivalent
802 public boolean tryLock() {
817 * lock. This is in contrast to the {@link #tryLock()}
818 * method. If you want a timed {@code tryLock} that does
822 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
871 public boolean tryLock(long timeout, TimeUnit unit)
1012 * {@code tryLock()} <em>will</em> immediately acquire the
1018 * #tryLock(long, TimeUnit) tryLock(0, TimeUnit.SECONDS) }
1032 public boolean tryLock( ) {
1048 * #tryLock()} method. If you want a timed {@code tryLock}
1052 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
1113 public boolean tryLock(long timeout, TimeUnit unit)