Class SharedGroupFactory

java.lang.Object
org.opensearch.transport.reactor.SharedGroupFactory

public final class SharedGroupFactory extends Object
Creates and returns EventLoopGroup instances. It will return a shared group for both getHttpGroup() and getTransportGroup() if ReactorNetty4HttpServerTransport.SETTING_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

    • SharedGroupFactory

      public SharedGroupFactory(Settings settings)
      Creates new shared group factory instance from settings
      Parameters:
      settings - settings
  • Method Details

    • getTransportWorkerCount

      public int getTransportWorkerCount()
      Gets the number of configured transport workers
      Returns:
      the number of configured transport workers
    • getTransportGroup

      public SharedGroupFactory.SharedGroup getTransportGroup()
      Gets transport shared group
      Returns:
      transport shared group
    • getHttpGroup

      public SharedGroupFactory.SharedGroup getHttpGroup()
      Gets HTTP transport shared group
      Returns:
      HTTP transport shared group