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.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.7.1
Syntax
Parameters
- permits
- Type: SystemInt32
the number of permits to acquire
Return Value
Type: Booleantrue if the permits were acquired and false otherwise
Exceptions
Exception | Condition |
---|---|
ArgumentException | if permits is negative |
Remarks
See Also