Fail actor creation if mailbox doesn't conform to required type. See #3237

This commit is contained in:
Björn Antonsson 2013-04-24 08:39:29 +02:00
parent 7094daf313
commit 9fd42c7cab
9 changed files with 43 additions and 37 deletions

View file

@ -631,6 +631,7 @@ case class BoundedDequeBasedMailbox( final val capacity: Int, final val pushTime
* The mailbox type will be looked up by mapping the type T via akka.actor.mailbox.requirements in the config,
* to a mailbox configuration. If no mailbox is assigned on Props or in deployment config then this one will be used.
*
* The queue type of the created mailbox will be checked against the type T and an error will be logged if it doesn't match.
* The queue type of the created mailbox will be checked against the type T and actor creation will fail if it doesn't
* fulfill the requirements.
*/
trait RequiresMessageQueue[T]