Interface MailboxExecutor.MailOptions
-
- All Known Implementing Classes:
MailOptionsImpl
- Enclosing interface:
- MailboxExecutor
@PublicEvolving public static interface MailboxExecutor.MailOptionsExtra options to configure enqueued mails.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static MailboxExecutor.MailOptionsdeferrable()Mark this mail as deferrable.booleanisDeferrable()Runtime can decide to defer execution of deferrable mails.booleanisUrgent()The urgent mail will be executed first compared to other mails.static MailboxExecutor.MailOptionsoptions()static MailboxExecutor.MailOptionsurgent()Mark this mail as urgent.
-
-
-
Method Detail
-
isDeferrable
boolean isDeferrable()
Runtime can decide to defer execution of deferrable mails. For example, to unblock subtask thread as quickly as possible, deferrable mails are not executed duringMailboxExecutor.yield()orMailboxExecutor.tryYield(). This is done to speed up checkpointing, by skipping execution of potentially long-running mails.
-
isUrgent
boolean isUrgent()
The urgent mail will be executed first compared to other mails. For example, handling unaligned checkpoint barrier or some control mails are expected to be executed as soon as possible.
-
options
static MailboxExecutor.MailOptions options()
-
deferrable
static MailboxExecutor.MailOptions deferrable()
Mark this mail as deferrable.
-
urgent
static MailboxExecutor.MailOptions urgent()
Mark this mail as urgent.
-
-