共用方式為


AbstractSelector.Begin Method

Definition

Marks the beginning of an I/O operation that might block indefinitely.

[Android.Runtime.Register("begin", "()V", "")]
protected void Begin ();
[<Android.Runtime.Register("begin", "()V", "")>]
member this.Begin : unit -> unit
Attributes

Remarks

Marks the beginning of an I/O operation that might block indefinitely.

This method should be invoked in tandem with the #end end method, using a try&nbsp;...&nbsp;finally block as shown above, in order to implement interruption for this selector.

Invoking this method arranges for the selector's Selector#wakeup wakeup method to be invoked if a thread's Thread#interrupt interrupt method is invoked while the thread is blocked in an I/O operation upon the selector.

Java documentation for java.nio.channels.spi.AbstractSelector.begin().

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