AbstractInterruptibleChannel.End(Boolean) Method

Definition

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

[Android.Runtime.Register("end", "(Z)V", "")]
protected void End (bool completed);
[<Android.Runtime.Register("end", "(Z)V", "")>]
member this.End : bool -> unit

Parameters

completed
Boolean

true if, and only if, the I/O operation completed successfully, that is, had some effect that would be visible to the operation's invoker

Attributes

Exceptions

if this channel is closed by another thread while this method is executing.

if another thread interrupts the calling thread while this method is executing.

Remarks

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

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

Java documentation for java.nio.channels.spi.AbstractInterruptibleChannel.end(boolean).

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