akka.actor.dungeon
Interface Dispatch
- All Known Implementing Classes:
- ActorCell, ResizablePoolCell, RoutedActorCell
public interface Dispatch
_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)