Package org.elasticsearch.transport
Class SharedGroupFactory
java.lang.Object
org.elasticsearch.transport.SharedGroupFactory
public final class SharedGroupFactory
extends java.lang.Object
Creates and returns
EventLoopGroup instances. It will return a shared group for
both getHttpGroup() and getTransportGroup() if
Netty4HttpServerTransport.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 Classes Modifier and Type Class Description static classSharedGroupFactory.SharedGroupWraps theSharedGroupFactory.RefCountedGroup. -
Constructor Summary
Constructors Constructor Description SharedGroupFactory(org.elasticsearch.common.settings.Settings settings) -
Method Summary
Modifier and Type Method Description SharedGroupFactory.SharedGroupgetHttpGroup()org.elasticsearch.common.settings.SettingsgetSettings()SharedGroupFactory.SharedGroupgetTransportGroup()intgetTransportWorkerCount()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SharedGroupFactory
public SharedGroupFactory(org.elasticsearch.common.settings.Settings settings)
-
-
Method Details
-
getSettings
public org.elasticsearch.common.settings.Settings getSettings() -
getTransportWorkerCount
public int getTransportWorkerCount() -
getTransportGroup
-
getHttpGroup
-