Class NioGroupFactory

java.lang.Object
org.elasticsearch.transport.nio.NioGroupFactory

public final class NioGroupFactory extends Object
Creates and returns NioSelectorGroup instances. It will return a shared group for both getHttpGroup() and getTransportGroup() if NioTransportPlugin.NIO_HTTP_WORKER_COUNT is configured to be 0. If that setting is not 0, then it will return a different group in the getHttpGroup() call.
  • Constructor Details

    • NioGroupFactory

      public NioGroupFactory(org.elasticsearch.common.settings.Settings settings, org.apache.logging.log4j.Logger logger)
  • Method Details

    • getSettings

      public org.elasticsearch.common.settings.Settings getSettings()
    • getTransportGroup

      public org.elasticsearch.nio.NioGroup getTransportGroup() throws IOException
      Throws:
      IOException
    • getHttpGroup

      public org.elasticsearch.nio.NioGroup getHttpGroup() throws IOException
      Throws:
      IOException