Closed shihuili1218 closed 2 years ago
this is the implementation of issue https://github.com/sofastack/sofa-jraft/issues/853
Main changes: ThreadPool
are all passed in through Options
. The ThreadPool
that sends AppendEntries messages is saved in DefaultRaftClientService
; The ThreadPool
for processing tasks is saved in the Map
of the ThreadPoolGroup
and obtained with the groupid.
custom thread pool, todo: DefaultFixedThreadsExecutorGroupFactory.toString
Motivation:
Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve.
Modification:
Describe the idea and modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.