If a permit is immediately available, this method returns {@code true} immediately, reducing the number ofavailable permits in the semaphore by one.
If no permit is available then this method will return immediately with the value {@code false}.
Note: Unlike {@link java.util.concurrent.Semaphore#tryAcquire()}, this method will obey ordering policies, and will never acquire a permit at the expense of another party. @return true if a permit has been acquired, false otherwise
|
|
|
|
|
|