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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNativeServerSocketChannel(int fd) NativeServerSocketChannel(SelectorProvider provider, int fd, int ops) -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetFD()protected voidprotected voidimplConfigureBlocking(boolean block) final intvalidOps()Methods inherited from class AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerMethods inherited from class SelectableChannel
registerMethods inherited from class AbstractInterruptibleChannel
begin, close, end, isOpen
-
Field Details
-
fd
private final int fd -
validOps
private final int validOps
-
-
Constructor Details
-
NativeServerSocketChannel
public NativeServerSocketChannel(int fd) -
NativeServerSocketChannel
-
-
Method Details
-
implCloseSelectableChannel
- Specified by:
implCloseSelectableChannelin classAbstractSelectableChannel- Throws:
IOException
-
implConfigureBlocking
- Specified by:
implConfigureBlockingin classAbstractSelectableChannel- Throws:
IOException
-
validOps
public final int validOps()- Specified by:
validOpsin classSelectableChannel
-
getFD
public final int getFD()- Specified by:
getFDin interfaceNativeSelectableChannel
-