Compartir a través de


SelectionKey.InterestOps Method

Definition

Overloads

InterestOps()

Retrieves this key's interest set.

InterestOps(Operations)

Retrieves this key's interest set.

InterestOps()

Retrieves this key's interest set.

[Android.Runtime.Register("interestOps", "()I", "GetInterestOpsHandler")]
public abstract Java.Nio.Channels.Operations InterestOps ();
[<Android.Runtime.Register("interestOps", "()I", "GetInterestOpsHandler")>]
abstract member InterestOps : unit -> Java.Nio.Channels.Operations

Returns

This key's interest set

Attributes

Exceptions

if the key has already been canceled.

Remarks

Retrieves this key's interest set.

It is guaranteed that the returned set will only contain operation bits that are valid for this key's channel.

Java documentation for java.nio.channels.SelectionKey.interestOps().

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

InterestOps(Operations)

Retrieves this key's interest set.

[Android.Runtime.Register("interestOps", "(I)I", "GetInterestOps_IHandler")]
public abstract Java.Nio.Channels.Operations InterestOps (Java.Nio.Channels.Operations ops);
[<Android.Runtime.Register("interestOps", "(I)I", "GetInterestOps_IHandler")>]
abstract member InterestOps : Java.Nio.Channels.Operations -> Java.Nio.Channels.Operations

Parameters

Returns

This key's interest set

Attributes

Exceptions

if a bit in operations is not in the set of ValidOps() of this key's channel.

if the key has already been canceled.

Remarks

Java documentation for java.nio.channels.SelectionKey.interestOps().

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