Class BatchCallbackRunner
- java.lang.Object
-
- org.apache.flink.runtime.asyncprocessing.BatchCallbackRunner
-
public class BatchCallbackRunner extends Object
AStateFutureImpl.CallbackRunner
that put one mail inMailboxExecutor
but run multiple callbacks within one mail.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isHasMail()
void
runBatch()
Run at most a full batch of callbacks.void
submit(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 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()
-
-