Java.Util.Concurrent.Semaphore.ReducePermits Method
Shrinks the number of available permits by the indicated reduction.

Syntax

[Android.Runtime.Register("reducePermits", "(I)V", "GetReducePermits_IHandler")]
protected virtual void ReducePermits (int reduction)

Parameters

reduction
the number of permits to remove

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif reduction is negative

Remarks

Shrinks the number of available permits by the indicated reduction. This method can be useful in subclasses that use semaphores to track resources that become unavailable. This method differs from acquire in that it does not block waiting for permits to become available.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1