Interface MailboxDefaultAction
@Internal
public interface MailboxDefaultAction
Interface for the default action that is repeatedly invoked in the mailbox-loop.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis controller is a feedback interface for the default action to interact with the mailbox execution.static interfaceRepresents the suspended state of aMailboxDefaultAction, ready to resume. -
Method Summary
Modifier and TypeMethodDescriptionvoidrunDefaultAction(MailboxDefaultAction.Controller controller) This method implements the default action of the mailbox loop (e.g. processing one event from the input).
-
Method Details
-
runDefaultAction
This method implements the default action of the mailbox loop (e.g. processing one event from the input). Implementations should (in general) be non-blocking.- Parameters:
controller- controller object for collaborative interaction between the default action and the mailbox loop.- Throws:
Exception- on any problems in the action.
-