!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:
parent
780831469c
commit
5bcb750441
17 changed files with 68 additions and 229 deletions
|
|
@ -320,6 +320,12 @@ class CallingThreadMailbox(_receiver: akka.actor.Cell, val mailboxType: MailboxT
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This is only a marker to be put in the messageQueue’s 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue