Class PriorityThreadsDispatcher
java.lang.Object
org.apache.pekko.dispatch.MessageDispatcherConfigurator
org.apache.pekko.dispatch.DispatcherConfigurator
org.apache.flink.runtime.rpc.pekko.PriorityThreadsDispatcher
public class PriorityThreadsDispatcher
extends org.apache.pekko.dispatch.DispatcherConfigurator
Pekko dispatcher threads creates threads with configurable priority.
Example of configuration:
low-priority-threads-dispatcher {
type = org.apache.flink.runtime.rpc.pekko.PriorityThreadsDispatcher
executor = "thread-pool-executor"
# should be between Thread.MIN_PRIORITY (which is 1) and Thread.MAX_PRIORITY (which is 10)
threads-priority = 1
thread-pool-executor {
core-pool-size-min = 0
core-pool-size-factor = 2.0
core-pool-size-max = 10
}
}
Two arguments constructor (the primary constructor) is automatically called by Pekko when it finds:
abcde-dispatcher {
type = org.apache.flink.runtime.rpc.pekko.PriorityThreadsDispatcher <-- the class that Pekko will instantiate
...
}
-
Constructor Summary
ConstructorsConstructorDescriptionPriorityThreadsDispatcher(com.typesafe.config.Config config, org.apache.pekko.dispatch.DispatcherPrerequisites prerequisites) -
Method Summary
Methods inherited from class org.apache.pekko.dispatch.DispatcherConfigurator
dispatcherMethods inherited from class org.apache.pekko.dispatch.MessageDispatcherConfigurator
config, configureExecutor, prerequisites
-
Constructor Details
-
PriorityThreadsDispatcher
public PriorityThreadsDispatcher(com.typesafe.config.Config config, org.apache.pekko.dispatch.DispatcherPrerequisites prerequisites) - Parameters:
config- passed automatically by Pekko, should contain information about threads priorityprerequisites- passed automatically by Pekko
-