Making everything compile and tests pass
This commit is contained in:
parent
9ac9e88c31
commit
1a7f29aaec
35 changed files with 101 additions and 59 deletions
|
|
@ -3,6 +3,8 @@
|
|||
*/
|
||||
package docs.actor.mailbox
|
||||
|
||||
import language.postfixOps
|
||||
|
||||
//#imports
|
||||
import akka.actor.Props
|
||||
|
||||
|
|
@ -56,7 +58,7 @@ import akka.util.duration._
|
|||
class MyMailboxType(systemSettings: ActorSystem.Settings, config: Config)
|
||||
extends MailboxType {
|
||||
|
||||
override def create(owner: Option[ActorRef], system: Option[ActorSystem]): MessageQueue = owner zip system headOption match {
|
||||
override def create(owner: Option[ActorRef], system: Option[ActorSystem]): MessageQueue = (owner zip system) headOption match {
|
||||
case Some((o, s: ExtendedActorSystem)) ⇒ new MyMessageQueue(o, s)
|
||||
case None ⇒ throw new IllegalArgumentException(
|
||||
"requires an owner (i.e. does not work with BalancingDispatcher)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue