Interface MailboxExecutor.MailOptions
-
- All Known Implementing Classes:
MailOptionsImpl
- Enclosing interface:
- MailboxExecutor
@PublicEvolving public static interface MailboxExecutor.MailOptions
Extra options to configure enqueued mails.
-
-
Method Summary
Static Methods Modifier and Type Method Description static MailboxExecutor.MailOptions
deferrable()
Mark this mail as deferrable.static MailboxExecutor.MailOptions
options()
-
-
-
Method Detail
-
options
static MailboxExecutor.MailOptions options()
-
deferrable
static MailboxExecutor.MailOptions deferrable()
Mark this mail as deferrable.Runtime can decide to defer execution of deferrable mails. For example, to unblock subtask thread as quickly as possible, deferrable mails are not executed during
MailboxExecutor.yield()
orMailboxExecutor.tryYield()
. This is done to speed up checkpointing, by skipping execution of potentially long-running mails.
-
-