Overload List
Name | Description | |
---|---|---|
![]() | TryAcquire |
Acquires a permit, if one is available and returns immediately,
with the value true, reducing the number of available permits by one.
|
![]() | TryAcquire(Int32) |
Acquires the given number of permits, if they are available, and
returns immediately, with the value true,
reducing the number of available permits by the given amount.
|
![]() | TryAcquire(Int64, TimeUnit) |
Acquires a permit from this semaphore, if one becomes available
within the given waiting time and the current thread has not
been interrupted.
|
![]() | TryAcquire(Int32, Int64, TimeUnit) |
Acquires the given number of permits, if they are available and
returns immediately, with the value
true
,
reducing the number of available permits by the given amount.
|
See Also