public abstract class SelectorProvider extends Object
Modifier | Constructor and Description |
---|---|
protected |
SelectorProvider()
Initializes the selector provider.
|
Modifier and Type | Method and Description |
---|---|
Channel |
inheritedChannel()
Returns the inherited channel of the VM.
|
abstract DatagramChannel |
openDatagramChannel()
Opens a datagram channel.
|
abstract Pipe |
openPipe()
Opens a pipe.
|
abstract AbstractSelector |
openSelector()
Opens a selector.
|
abstract ServerSocketChannel |
openServerSocketChannel()
Opens a server socket channel.
|
abstract 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()
SecurityException
- If a security manager has been installed and
it denies @see RuntimePermission ("selectorProvider").public abstract DatagramChannel openDatagramChannel() throws IOException
IOException
- if an error occurspublic abstract Pipe openPipe() throws IOException
IOException
- if an error occurspublic abstract AbstractSelector openSelector() throws IOException
IOException
- if an error occurspublic abstract ServerSocketChannel openServerSocketChannel() throws IOException
IOException
- if an error occurspublic abstract SocketChannel openSocketChannel() throws IOException
IOException
- if an error occurspublic Channel inheritedChannel() throws IOException
IOException
- If an I/O error occursSecurityException
- If an installed security manager denies access
to RuntimePermission("inheritedChannel")public static SelectorProvider provider()