Class BatchCallbackRunner
- java.lang.Object
-
- org.apache.flink.runtime.asyncprocessing.BatchCallbackRunner
-
public class BatchCallbackRunner extends Object
AStateFutureImpl.CallbackRunnerthat put one mail inMailboxExecutorbut run multiple callbacks within one mail.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisHasMail()voidrunBatch()Run at most a full batch of callbacks.voidsubmit(org.apache.flink.util.function.ThrowingRunnable<? extends Exception> task)Submit a callback to run.
-
-
-
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 ExceptionRun 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()
-
-