remove SystemEnvelope
- channel field was always set to NullChannel and not used - receiver field is better put into the Mailbox, because there it takes space only once per actor - leaves only the bare SystemMessage to be queued
This commit is contained in:
parent
65868d7c96
commit
183dfb4d7f
7 changed files with 78 additions and 83 deletions
|
|
@ -84,8 +84,8 @@ class Dispatcher(
|
|||
registerForExecution(mbox, true, false)
|
||||
}
|
||||
|
||||
protected[akka] def systemDispatch(invocation: SystemEnvelope) = {
|
||||
val mbox = invocation.receiver.mailbox
|
||||
protected[akka] def systemDispatch(receiver: ActorCell, invocation: SystemMessage) = {
|
||||
val mbox = receiver.mailbox
|
||||
mbox systemEnqueue invocation
|
||||
registerForExecution(mbox, false, true)
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ class Dispatcher(
|
|||
}
|
||||
}
|
||||
|
||||
protected[akka] def createMailbox(actor: ActorCell): Mailbox = mailboxType.create(this)
|
||||
protected[akka] def createMailbox(actor: ActorCell): Mailbox = mailboxType.create(this, actor)
|
||||
|
||||
protected[akka] def start {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue