Share via


SelectionKey.InterestOpsOr(Int32) Method

Definition

Atomically sets this key's interest set to the bitwise union ("or") of the existing interest set and the given value.

[Android.Runtime.Register("interestOpsOr", "(I)I", "GetInterestOpsOr_IHandler", ApiSince=33)]
public virtual int InterestOpsOr (int ops);
[<Android.Runtime.Register("interestOpsOr", "(I)I", "GetInterestOpsOr_IHandler", ApiSince=33)>]
abstract member InterestOpsOr : int -> int
override this.InterestOpsOr : int -> int

Parameters

ops
Int32

The interest set to apply

Returns

The previous interest set

Attributes

Remarks

Atomically sets this key's interest set to the bitwise union ("or") of the existing interest set and the given value. This method is guaranteed to be atomic with respect to other concurrent calls to this method or to #interestOpsAnd(int).

This method may be invoked at any time. If this method is invoked while a selection operation is in progress then it has no effect upon that operation; the change to the key's interest set will be seen by the next selection operation.

Added in 11.

Java documentation for java.nio.channels.SelectionKey.interestOpsOr(int).

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