Adding test harness for ActorModel (Dispatcher), work-in-progress

This commit is contained in:
Viktor Klang 2010-10-25 12:51:13 +02:00
parent d694f85e61
commit 74df2a851d
6 changed files with 244 additions and 22 deletions

View file

@ -90,7 +90,7 @@ trait MailboxFactory {
/**
* Creates a MessageQueue (Mailbox) with the specified properties.
*/
protected def createMailbox(actorRef: ActorRef): AnyRef =
private[akka] def createMailbox(actorRef: ActorRef): AnyRef =
mailboxType.getOrElse(throw new IllegalStateException("No mailbox type defined")) match {
case mb: TransientMailboxType => createTransientMailbox(actorRef, mb)
case mb: DurableMailboxType => createDurableMailbox(actorRef, mb)
@ -99,10 +99,10 @@ trait MailboxFactory {
/**
* Creates and returns a transient mailbox for the given actor.
*/
protected def createTransientMailbox(actorRef: ActorRef, mailboxType: TransientMailboxType): AnyRef
private[akka] def createTransientMailbox(actorRef: ActorRef, mailboxType: TransientMailboxType): AnyRef
/**
* Creates and returns a durable mailbox for the given actor.
*/
protected def createDurableMailbox(actorRef: ActorRef, mailboxType: DurableMailboxType): AnyRef
private[akka] def createDurableMailbox(actorRef: ActorRef, mailboxType: DurableMailboxType): AnyRef
}