Making everything compile and tests pass

This commit is contained in:
Viktor Klang 2012-06-28 15:33:49 +02:00
parent 9ac9e88c31
commit 1a7f29aaec
35 changed files with 101 additions and 59 deletions

View file

@ -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)")