Package org.apache.pekko.actor.dungeon
Interface Dispatch
public interface Dispatch
INTERNAL API
-
Method Summary
Modifier and TypeMethodDescriptionvoid_mailboxDoNotCallMeDirectly_$eq(org.apache.pekko.dispatch.Mailbox x$1) org.apache.pekko.dispatch.Mailboxscala.PartialFunction<Throwable,scala.runtime.BoxedUnit> booleaninit(boolean sendSupervise, MailboxType mailboxType) Initialize this cell, i.e.initWithFailure(Throwable failure) booleanorg.apache.pekko.dispatch.Mailboxmailbox()intvoidvoidvoidsendMessage(Envelope msg) voidsendSystemMessage(SystemMessage message) serializeAndDeserialize(Envelope envelope) start()Start this cell, i.e.voidstop()voidsuspend()org.apache.pekko.dispatch.MailboxswapMailbox(org.apache.pekko.dispatch.Mailbox newMailbox)
-
Method Details
-
_mailboxDoNotCallMeDirectly_$eq
void _mailboxDoNotCallMeDirectly_$eq(org.apache.pekko.dispatch.Mailbox x$1) -
_preventPrivateUnusedErasure
org.apache.pekko.dispatch.Mailbox _preventPrivateUnusedErasure() -
handleException
scala.PartialFunction<Throwable,scala.runtime.BoxedUnit> handleException() -
hasMessages
boolean hasMessages() -
init
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(). -
initWithFailure
-
isTerminated
boolean isTerminated() -
mailbox
org.apache.pekko.dispatch.Mailbox mailbox() -
numberOfMessages
int numberOfMessages() -
restart
-
resume
-
sendMessage
-
sendSystemMessage
-
serializeAndDeserialize
-
serializeAndDeserializePayload
-
start
Dispatch start()Start this cell, i.e. attach it to the dispatcher. -
stop
void stop() -
suspend
void suspend() -
swapMailbox
org.apache.pekko.dispatch.Mailbox swapMailbox(org.apache.pekko.dispatch.Mailbox newMailbox)
-