- block
- true for setting this channel's mode to blocking, false to set it to non-blocking.
Documentation for this section has not yet been entered.
Type Reason Java.Nio.Channels.ClosedChannelException if this channel is closed. Java.Nio.Channels.IllegalBlockingModeException if block is true and this channel has been registered with at least one selector. Java.IO.IOException if an I/O error occurs.
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.