Interface MailboxExecutor.MailOptions

  • All Known Implementing Classes:
    MailOptionsImpl
    Enclosing interface:
    MailboxExecutor

    @PublicEvolving
    public static interface MailboxExecutor.MailOptions
    Extra options to configure enqueued mails.
    • 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 during MailboxExecutor.yield() or MailboxExecutor.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.