Java.Nio.Channels.SelectableChannel.ConfigureBlocking Method
Sets the blocking mode of this channel.

Syntax

[Android.Runtime.Register("configureBlocking", "(Z)Ljava/nio/channels/SelectableChannel;", "GetConfigureBlocking_ZHandler")]
public abstract SelectableChannel ConfigureBlocking (bool block)

Parameters

block
true for setting this channel's mode to blocking, false to set it to non-blocking.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.Channels.ClosedChannelExceptionif this channel is closed.
Java.Nio.Channels.IllegalBlockingModeExceptionif block is true and this channel has been registered with at least one selector.
Java.IO.IOExceptionif an I/O error occurs.

Remarks

Sets the blocking mode of this channel. A call to this method blocks if other calls to this method or to a register method are executing. The new blocking mode is valid for calls to other methods that are invoked after the call to this method. If other methods are already executing when this method is called, they still have the old mode and the call to this method might block depending on the implementation.

[Android Documentation]

Requirements

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