Class MailboxExecutorImpl

java.lang.Object
org.apache.flink.streaming.runtime.tasks.mailbox.MailboxExecutorImpl
All Implemented Interfaces:
org.apache.flink.api.common.operators.MailboxExecutor

@Internal public final class MailboxExecutorImpl extends Object implements org.apache.flink.api.common.operators.MailboxExecutor
Implementation of an executor service build around a mailbox-based execution model.
  • Constructor Details

  • Method Details

    • isIdle

      public boolean isIdle()
    • execute

      public void execute(org.apache.flink.api.common.operators.MailboxExecutor.MailOptions mailOptions, org.apache.flink.util.function.ThrowingRunnable<? extends Exception> command, String descriptionFormat, Object... descriptionArgs)
      Specified by:
      execute in interface org.apache.flink.api.common.operators.MailboxExecutor
    • yield

      public void yield() throws InterruptedException
      Specified by:
      yield in interface org.apache.flink.api.common.operators.MailboxExecutor
      Throws:
      InterruptedException
    • tryYield

      public boolean tryYield()
      Specified by:
      tryYield in interface org.apache.flink.api.common.operators.MailboxExecutor
    • shouldInterrupt

      public boolean shouldInterrupt()
      Specified by:
      shouldInterrupt in interface org.apache.flink.api.common.operators.MailboxExecutor