Threw away old ThreadBasedDispatcher and replaced it with an EBEDD with 1 in core pool and 1 in max pool
This commit is contained in:
parent
16a7a3ecb0
commit
b1462ade30
2 changed files with 25 additions and 39 deletions
|
|
@ -189,3 +189,13 @@ class ExecutorBasedEventDrivenDispatcher(
|
|||
buildThreadPool
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Usable to create a single-threaded dispatcher
|
||||
*/
|
||||
object SingleThread extends Function1[ThreadPoolBuilder,Unit] {
|
||||
def apply(b: ThreadPoolBuilder) {
|
||||
b setCorePoolSize 1
|
||||
b setMaxPoolSize 1
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue