Android Guides | Samples

Java.Nio.Channels.Spi.SelectorProvider Class

SelectorProvider is an abstract base class that declares methods for providing instances of DatagramChannel, Pipe, Selector , ServerSocketChannel, and SocketChannel.

See Also: SelectorProvider

Syntax

[Android.Runtime.Register("java/nio/channels/spi/SelectorProvider", DoNotGenerateAcw=true)]
public abstract class SelectorProvider : Object

Remarks

SelectorProvider is an abstract base class that declares methods for providing instances of DatagramChannel, Pipe, Selector , ServerSocketChannel, and SocketChannel. All the methods of this class are thread-safe.

A provider instance can be retrieved through a system property or the configuration file in a jar file; if no provider is available that way then the system default provider is returned.

[Android Documentation]

Requirements

Namespace: Java.Nio.Channels.Spi
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Nio.Channels.Spi.SelectorProvider are listed below.

See Also: Object

Protected Constructors

Constructs a new SelectorProvider.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

InheritedChannel() : IChannel
Returns the channel inherited from the process that created this VM.
abstract
OpenDatagramChannel() : DatagramChannel
Creates a new open DatagramChannel.
abstract
OpenPipe() : Pipe
Creates a new Pipe.
abstract
OpenSelector() : AbstractSelector
Creates a new selector.
abstract
OpenServerSocketChannel() : ServerSocketChannel
Creates a new open ServerSocketChannel.
abstract
OpenSocketChannel() : SocketChannel
Create a new open SocketChannel.
static
Provider() : SelectorProvider
Gets a provider instance by executing the following steps when called for the first time:
  • if the system property "java.nio.channels.spi.SelectorProvider" is set, the value of this property is the class name of the provider returned;
  • if there is a provider-configuration file named "java.nio.channels.spi.SelectorProvider" in META-INF/services of a jar file valid in the system class loader, the first class name is the provider's class name;
  • otherwise, a system default provider will be returned.