Package jnr.enxio.channels
Class NativeSelectorProvider
- java.lang.Object
-
- java.nio.channels.spi.SelectorProvider
-
- jnr.enxio.channels.NativeSelectorProvider
-
public final class NativeSelectorProvider extends SelectorProvider
-
-
Constructor Summary
Constructors Constructor Description NativeSelectorProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SelectorProvider
getInstance()
DatagramChannel
openDatagramChannel()
DatagramChannel
openDatagramChannel(ProtocolFamily family)
Pipe
openPipe()
AbstractSelector
openSelector()
ServerSocketChannel
openServerSocketChannel()
SocketChannel
openSocketChannel()
-
Methods inherited from class java.nio.channels.spi.SelectorProvider
inheritedChannel, provider
-
-
-
-
Method Detail
-
getInstance
public static final SelectorProvider getInstance()
-
openDatagramChannel
public DatagramChannel openDatagramChannel() throws IOException
- Specified by:
openDatagramChannel
in classSelectorProvider
- Throws:
IOException
-
openDatagramChannel
public DatagramChannel openDatagramChannel(ProtocolFamily family) throws IOException
- Specified by:
openDatagramChannel
in classSelectorProvider
- Throws:
IOException
-
openPipe
public Pipe openPipe() throws IOException
- Specified by:
openPipe
in classSelectorProvider
- Throws:
IOException
-
openSelector
public AbstractSelector openSelector() throws IOException
- Specified by:
openSelector
in classSelectorProvider
- Throws:
IOException
-
openServerSocketChannel
public ServerSocketChannel openServerSocketChannel() throws IOException
- Specified by:
openServerSocketChannel
in classSelectorProvider
- Throws:
IOException
-
openSocketChannel
public SocketChannel openSocketChannel() throws IOException
- Specified by:
openSocketChannel
in classSelectorProvider
- Throws:
IOException
-
-