Class NativeServerSocketChannel

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.nio.channels.Channel, java.nio.channels.InterruptibleChannel, NativeSelectableChannel

    public class NativeServerSocketChannel
    extends java.nio.channels.spi.AbstractSelectableChannel
    implements NativeSelectableChannel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int fd  
      private int validOps  
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.nio.channels.Channel

        isOpen
    • Field Detail

      • fd

        private final int fd
      • validOps

        private final int validOps
    • Constructor Detail

      • NativeServerSocketChannel

        public NativeServerSocketChannel​(int fd)
      • NativeServerSocketChannel

        public NativeServerSocketChannel​(java.nio.channels.spi.SelectorProvider provider,
                                         int fd,
                                         int ops)
    • Method Detail

      • implCloseSelectableChannel

        protected void implCloseSelectableChannel()
                                           throws java.io.IOException
        Specified by:
        implCloseSelectableChannel in class java.nio.channels.spi.AbstractSelectableChannel
        Throws:
        java.io.IOException
      • implConfigureBlocking

        protected void implConfigureBlocking​(boolean block)
                                      throws java.io.IOException
        Specified by:
        implConfigureBlocking in class java.nio.channels.spi.AbstractSelectableChannel
        Throws:
        java.io.IOException
      • validOps

        public final int validOps()
        Specified by:
        validOps in class java.nio.channels.SelectableChannel