Package org.opensearch.transport.reactor
Class SharedGroupFactory
java.lang.Object
org.opensearch.transport.reactor.SharedGroupFactory
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWraps theSharedGroupFactory.RefCountedGroup. -
Constructor Summary
ConstructorsConstructorDescriptionSharedGroupFactory(Settings settings) Creates new shared group factory instance from settings -
Method Summary
Modifier and TypeMethodDescriptionGets HTTP transport shared groupGets transport shared groupintGets the number of configured transport workers
-
Constructor Details
-
SharedGroupFactory
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
Gets transport shared group- Returns:
- transport shared group
-
getHttpGroup
Gets HTTP transport shared group- Returns:
- HTTP transport shared group
-