public abstract class SelectorProvider extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
SelectorProvider()
Initializes the selector provider.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.Channel |
inheritedChannel()
Returns the inherited channel of the VM.
|
abstract java.nio.channels.DatagramChannel |
openDatagramChannel()
Opens a datagram channel.
|
abstract java.nio.channels.Pipe |
openPipe()
Opens a pipe.
|
abstract AbstractSelector |
openSelector()
Opens a selector.
|
abstract java.nio.channels.ServerSocketChannel |
openServerSocketChannel()
Opens a server socket channel.
|
abstract java.nio.channels.SocketChannel |
openSocketChannel()
Opens a socket channel.
|
static SelectorProvider |
provider()
Returns the system-wide default selector provider for this invocation
of the Java virtual machine.
|
protected SelectorProvider()
java.lang.SecurityException - If a security manager has been installed and
it denies @see RuntimePermission ("selectorProvider").public abstract java.nio.channels.DatagramChannel openDatagramChannel() throws java.io.IOException
java.io.IOException - if an error occurspublic abstract java.nio.channels.Pipe openPipe() throws java.io.IOException
java.io.IOException - if an error occurspublic abstract AbstractSelector openSelector() throws java.io.IOException
java.io.IOException - if an error occurspublic abstract java.nio.channels.ServerSocketChannel openServerSocketChannel() throws java.io.IOException
java.io.IOException - if an error occurspublic abstract java.nio.channels.SocketChannel openSocketChannel() throws java.io.IOException
java.io.IOException - if an error occurspublic java.nio.channels.Channel inheritedChannel() throws java.io.IOException
java.io.IOException - If an I/O error occursjava.lang.SecurityException - If an installed security manager denies access
to RuntimePermission("inheritedChannel")public static SelectorProvider provider()