306 |
|
* @param timeout the time to wait for availability |
307 |
|
* @param unit the time unit of the timeout argument |
308 |
|
* @return the current sequence number if the lock is available |
309 |
< |
* upon return from this method. |
309 |
> |
* upon return from this method |
310 |
|
* @throws InterruptedException if the current thread is interrupted |
311 |
|
* @throws TimeoutException if the lock was not available within |
312 |
< |
* the specified waiting time. |
312 |
> |
* the specified waiting time |
313 |
|
* @throws NullPointerException if the time unit is null |
314 |
|
*/ |
315 |
|
public long tryAwaitAvailability(long timeout, TimeUnit unit) |