Change flow executor thread names to be the same (#1111)

This commit is contained in:
Andras Slemmer 2018-06-28 11:07:28 +01:00 committed by Michele Sollecito
parent c32b7b1331
commit cedfb3f069

View File

@ -187,7 +187,7 @@ D""".trimStart()
log.info("Multi-threaded state machine manager with ${configuration.enterpriseConfiguration.tuning.flowThreadPoolSize} threads.")
return Executors.newFixedThreadPool(
configuration.enterpriseConfiguration.tuning.flowThreadPoolSize,
ThreadFactoryBuilder().setNameFormat("flow-executor-%d").setThreadFactory(::FastThreadLocalThread).build()
ThreadFactoryBuilder().setNameFormat("flow-worker").setThreadFactory(::FastThreadLocalThread).build()
)
}