Udostępnij za pośrednictwem


AbstractSelector.Register(AbstractSelectableChannel, Int32, Object) Method

Definition

Registers the given channel with this selector.

[Android.Runtime.Register("register", "(Ljava/nio/channels/spi/AbstractSelectableChannel;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;", "GetRegister_Ljava_nio_channels_spi_AbstractSelectableChannel_ILjava_lang_Object_Handler")]
protected abstract Java.Nio.Channels.SelectionKey? Register (Java.Nio.Channels.Spi.AbstractSelectableChannel? ch, int ops, Java.Lang.Object? att);
[<Android.Runtime.Register("register", "(Ljava/nio/channels/spi/AbstractSelectableChannel;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;", "GetRegister_Ljava_nio_channels_spi_AbstractSelectableChannel_ILjava_lang_Object_Handler")>]
abstract member Register : Java.Nio.Channels.Spi.AbstractSelectableChannel * int * Java.Lang.Object -> Java.Nio.Channels.SelectionKey

Parameters

ch
AbstractSelectableChannel

The channel to be registered

ops
Int32

The initial interest set, which must be valid

att
Object

The initial attachment for the resulting key

Returns

A new key representing the registration of the given channel with this selector

Attributes

Remarks

Registers the given channel with this selector.

This method is invoked by a channel's AbstractSelectableChannel#register register method in order to perform the actual work of registering the channel with this selector.

Java documentation for java.nio.channels.spi.AbstractSelector.register(java.nio.channels.spi.AbstractSelectableChannel, int, java.lang.Object).

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