java.nio.channels.spi
public abstract class SelectorProvider extends Object
Since: 1.4
Constructor Summary | |
---|---|
protected | SelectorProvider()
Initializes the selector provider.
|
Method Summary | |
---|---|
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.
|
Throws: SecurityException If a security manager has been installed and it denies @see RuntimePermission ("selectorProvider").
Returns: a new datagram channel object
Throws: IOException if an error occurs
Returns: a new pipe object
Throws: IOException if an error occurs
Returns: a new selector object
Throws: IOException if an error occurs
Returns: a new server socket channel object
Throws: IOException if an error occurs
Returns: a new socket channel object
Throws: IOException if an error occurs
Returns: the default seletor provider