!act,doc,rem,tes 3823 remove deprecated Props methods

- rewrite deprecated usages to their recommended counterparts
- TestActorRef now verifies mailbox requirements
- CallingThreadMailbox now exposes proper messageQueue type for
  inspection
This commit is contained in:
Roland Kuhn 2014-01-17 09:12:44 +01:00
parent 780831469c
commit 5bcb750441
17 changed files with 68 additions and 229 deletions

View file

@ -320,6 +320,12 @@ class CallingThreadMailbox(_receiver: akka.actor.Cell, val mailboxType: MailboxT
}
}
/**
* This is only a marker to be put in the messageQueues stead to make error
* messages pertaining to violated mailbox type requirements less cryptic.
*/
override val messageQueue: MessageQueue = q.get
override def enqueue(receiver: ActorRef, msg: Envelope): Unit = q.get.enqueue(receiver, msg)
override def dequeue(): Envelope = throw new UnsupportedOperationException("CallingThreadMailbox cannot dequeue normally")
override def hasMessages: Boolean = q.get.hasMessages