@Internal public static interface MailboxDefaultAction.Controller
Modifier and Type | Method and Description |
---|---|
void |
allActionsCompleted()
This method must be called to end the stream task when all actions for the tasks have
been performed.
|
MailboxDefaultAction.Suspension |
suspendDefaultAction()
Same as
suspendDefaultAction(PeriodTimer) but without any associated timer
measuring the idle time. |
MailboxDefaultAction.Suspension |
suspendDefaultAction(PeriodTimer suspensionPeriodTimer)
Calling this method signals that the mailbox-thread should (temporarily) stop invoking
the default action, e.g. because there is currently no input available.
|
void allActionsCompleted()
MailboxDefaultAction.Suspension suspendDefaultAction(PeriodTimer suspensionPeriodTimer)
suspensionPeriodTimer
- started (ticking) PeriodTimer
that measures how long
the default action was suspended/idling. If mailbox loop is busy processing mails,
this timer should be paused for the time required to process the mails.MailboxDefaultAction.Suspension suspendDefaultAction()
suspendDefaultAction(PeriodTimer)
but without any associated timer
measuring the idle time.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.