Class BatchCallbackRunner


  • public class BatchCallbackRunner
    extends Object
    A StateFutureImpl.CallbackRunner that put one mail in MailboxExecutor but run multiple callbacks within one mail.
    • Method Detail

      • submit

        public void submit​(org.apache.flink.util.function.ThrowingRunnable<? extends Exception> task)
        Submit a callback to run.
        Parameters:
        task - the callback.
      • runBatch

        public void runBatch()
                      throws Exception
        Run at most a full batch of callbacks. If there has not been a full batch of callbacks, run current callbacks in active buffer.
        Throws:
        Exception
      • isHasMail

        public boolean isHasMail()