split Mailbox and MessageQueue, see #1844
- this enables using any MessageQueue in BalancingDispatcher, CallingThreadDispatcher and in general leads to less conflation of concepts - add MessageQueue.cleanUp(owner, deadLetterQueue) for the benefit of durable mailboxes - change MailboxType.create to take an optional owner and generate only a MessageQueue, not a Mailbox
This commit is contained in:
parent
62be4dafee
commit
2f3737195b
18 changed files with 171 additions and 144 deletions
|
|
@ -9,6 +9,7 @@ import com.typesafe.config.Config
|
|||
import akka.dispatch.DispatcherPrerequisites
|
||||
import akka.dispatch.MessageDispatcher
|
||||
import akka.dispatch.MessageDispatcherConfigurator
|
||||
import akka.dispatch.UnboundedMailbox
|
||||
|
||||
object CallingThreadDispatcherModelSpec {
|
||||
import ActorModelSpec._
|
||||
|
|
@ -31,7 +32,7 @@ object CallingThreadDispatcherModelSpec {
|
|||
extends MessageDispatcherConfigurator(config, prerequisites) {
|
||||
|
||||
private val instance: MessageDispatcher =
|
||||
new CallingThreadDispatcher(prerequisites) with MessageDispatcherInterceptor {
|
||||
new CallingThreadDispatcher(prerequisites, UnboundedMailbox()) with MessageDispatcherInterceptor {
|
||||
override def id: String = config.getString("id")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue