Package jnr.enxio.channels
Class NativeServerSocketChannel
- java.lang.Object
-
- java.nio.channels.spi.AbstractInterruptibleChannel
-
- java.nio.channels.SelectableChannel
-
- java.nio.channels.spi.AbstractSelectableChannel
-
- jnr.enxio.channels.NativeServerSocketChannel
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,InterruptibleChannel
,NativeSelectableChannel
public class NativeServerSocketChannel extends AbstractSelectableChannel implements NativeSelectableChannel
-
-
Constructor Summary
Constructors Constructor Description NativeServerSocketChannel(int fd)
NativeServerSocketChannel(SelectorProvider provider, int fd, int ops)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFD()
protected void
implCloseSelectableChannel()
protected void
implConfigureBlocking(boolean block)
int
validOps()
-
Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register
-
Methods inherited from class java.nio.channels.SelectableChannel
register
-
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
-
-
-
-
Constructor Detail
-
NativeServerSocketChannel
public NativeServerSocketChannel(int fd)
-
NativeServerSocketChannel
public NativeServerSocketChannel(SelectorProvider provider, int fd, int ops)
-
-
Method Detail
-
implCloseSelectableChannel
protected void implCloseSelectableChannel() throws IOException
- Specified by:
implCloseSelectableChannel
in classAbstractSelectableChannel
- Throws:
IOException
-
implConfigureBlocking
protected void implConfigureBlocking(boolean block) throws IOException
- Specified by:
implConfigureBlocking
in classAbstractSelectableChannel
- Throws:
IOException
-
validOps
public final int validOps()
- Specified by:
validOps
in classSelectableChannel
-
getFD
public final int getFD()
- Specified by:
getFD
in interfaceNativeSelectableChannel
-
-