Share via


SelectableChannel.BlockingLock Method

Definition

Retrieves the object upon which the #configureBlocking configureBlocking and #register register methods synchronize.

[Android.Runtime.Register("blockingLock", "()Ljava/lang/Object;", "GetBlockingLockHandler")]
public abstract Java.Lang.Object? BlockingLock ();
[<Android.Runtime.Register("blockingLock", "()Ljava/lang/Object;", "GetBlockingLockHandler")>]
abstract member BlockingLock : unit -> Java.Lang.Object

Returns

The blocking-mode lock object

Attributes

Remarks

Retrieves the object upon which the #configureBlocking configureBlocking and #register register methods synchronize. This is often useful in the implementation of adaptors that require a specific blocking mode to be maintained for a short period of time.

Java documentation for java.nio.channels.SelectableChannel.blockingLock().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to