akka.actor.dungeon
Interface Dispatch

All Known Implementing Classes:
ActorCell, ResizablePoolCell, RoutedActorCell

public interface Dispatch


Method Summary
 Mailbox _mailboxDoNotCallMeDirectly()
           
 scala.PartialFunction<java.lang.Throwable,scala.runtime.BoxedUnit> handleException()
           
 boolean hasMessages()
           
 Dispatch init(boolean sendSupervise, MailboxType mailboxType)
          Initialize this cell, i.e.
 boolean isTerminated()
           
 Mailbox mailbox()
           
 int numberOfMessages()
           
 void restart(java.lang.Throwable cause)
           
 void resume(java.lang.Throwable causedByFailure)
           
 void sendMessage(Envelope msg)
           
 void sendSystemMessage(SystemMessage message)
           
 Dispatch start()
          Start this cell, i.e.
 void stop()
           
 void suspend()
           
 Mailbox swapMailbox(Mailbox newMailbox)
           
 

Method Detail

_mailboxDoNotCallMeDirectly

Mailbox _mailboxDoNotCallMeDirectly()

mailbox

Mailbox mailbox()

swapMailbox

Mailbox swapMailbox(Mailbox newMailbox)

hasMessages

boolean hasMessages()

numberOfMessages

int numberOfMessages()

isTerminated

boolean isTerminated()

init

Dispatch init(boolean sendSupervise,
              MailboxType mailboxType)
Initialize this cell, i.e. set up mailboxes and supervision. The UID must be reasonably different from the previous UID of a possible actor with the same path, which can be achieved by using ThreadLocalRandom.current.nextInt().

Parameters:
sendSupervise - (undocumented)
mailboxType - (undocumented)
Returns:
(undocumented)

start

Dispatch start()
Start this cell, i.e. attach it to the dispatcher.

Returns:
(undocumented)

handleException

scala.PartialFunction<java.lang.Throwable,scala.runtime.BoxedUnit> handleException()

suspend

void suspend()

resume

void resume(java.lang.Throwable causedByFailure)

restart

void restart(java.lang.Throwable cause)

stop

void stop()

sendMessage

void sendMessage(Envelope msg)

sendSystemMessage

void sendSystemMessage(SystemMessage message)