Class SelectorProviderUtil

java.lang.Object
io.netty.channel.socket.nio.SelectorProviderUtil

final class SelectorProviderUtil extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final InternalLogger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static java.lang.reflect.Method
    findOpenMethod(java.lang.String methodName)
     
    (package private) static <C extends java.nio.channels.Channel>
    C
    newChannel(java.lang.reflect.Method method, java.nio.channels.spi.SelectorProvider provider, SocketProtocolFamily family)
     
    private static <C extends java.nio.channels.Channel>
    C
    newChannel(java.lang.reflect.Method method, java.nio.channels.spi.SelectorProvider provider, java.lang.Object family)
    Use the SelectorProvider to open SocketChannel and so remove condition in SelectorProvider.provider() which is called by each SocketChannel.open() otherwise.
    (package private) static <C extends java.nio.channels.Channel>
    C
    newDomainSocketChannel(java.lang.reflect.Method method, java.nio.channels.spi.SelectorProvider provider)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SelectorProviderUtil

      private SelectorProviderUtil()
  • Method Details

    • findOpenMethod

      static java.lang.reflect.Method findOpenMethod(java.lang.String methodName)
    • newChannel

      private static <C extends java.nio.channels.Channel> C newChannel(java.lang.reflect.Method method, java.nio.channels.spi.SelectorProvider provider, java.lang.Object family) throws java.io.IOException
      Use the SelectorProvider to open SocketChannel and so remove condition in SelectorProvider.provider() which is called by each SocketChannel.open() otherwise.

      See #2308.

      Throws:
      java.io.IOException
    • newChannel

      static <C extends java.nio.channels.Channel> C newChannel(java.lang.reflect.Method method, java.nio.channels.spi.SelectorProvider provider, SocketProtocolFamily family) throws java.io.IOException
      Throws:
      java.io.IOException
    • newDomainSocketChannel

      static <C extends java.nio.channels.Channel> C newDomainSocketChannel(java.lang.reflect.Method method, java.nio.channels.spi.SelectorProvider provider) throws java.io.IOException
      Throws:
      java.io.IOException