Revert "Switching ThreadBasedDispatcher to use SynchronousQueue since only one actor should be in it"
This reverts commit f980dc3f23.
This commit is contained in:
parent
36a612eea5
commit
dfca401ab0
1 changed files with 2 additions and 7 deletions
|
|
@ -9,7 +9,7 @@ import akka.config.Config.config
|
|||
import akka.util.Duration
|
||||
|
||||
import java.util.Queue
|
||||
import java.util.concurrent.{TimeUnit, SynchronousQueue}
|
||||
import java.util.concurrent.{ConcurrentLinkedQueue, BlockingQueue, TimeUnit, LinkedBlockingQueue}
|
||||
import akka.actor
|
||||
import java.util.concurrent.atomic.AtomicReference
|
||||
|
||||
|
|
@ -47,11 +47,6 @@ class ThreadBasedDispatcher(_actor: ActorRef, _mailboxType: MailboxType)
|
|||
}
|
||||
|
||||
object ThreadBasedDispatcher {
|
||||
val oneThread: ThreadPoolConfig =
|
||||
ThreadPoolConfig(
|
||||
allowCorePoolTimeout = true,
|
||||
corePoolSize = 1,
|
||||
maxPoolSize = 1,
|
||||
queueFactory = () => new SynchronousQueue[Runnable])
|
||||
val oneThread: ThreadPoolConfig = ThreadPoolConfig(allowCorePoolTimeout = true, corePoolSize = 1, maxPoolSize = 1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue