Interface StreamTaskActionExecutor
-
- All Known Implementing Classes:
StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
@Internal public interface StreamTaskActionExecutorExecutesRunnable,ThrowingRunnable, orCallable. Intended to customize execution in sub-types ofStreamTask, e.g. synchronization inSourceStreamTask.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStreamTaskActionExecutor.SynchronizedStreamTaskActionExecutorDeprecated.this class should only be used inSourceStreamTaskwhich exposes the checkpoint lock as part of Public API.
-
Field Summary
Fields Modifier and Type Field Description static StreamTaskActionExecutorIMMEDIATE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> Rcall(Callable<R> callable)voidrun(org.apache.flink.util.function.RunnableWithException runnable)<E extends Throwable>
voidrunThrowing(org.apache.flink.util.function.ThrowingRunnable<E> runnable)static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutorsynchronizedExecutor()Returns an ExecutionDecorator that synchronizes each invocation.static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutorsynchronizedExecutor(Object mutex)Returns an ExecutionDecorator that synchronizes each invocation on a given object.
-
-
-
Field Detail
-
IMMEDIATE
static final StreamTaskActionExecutor IMMEDIATE
-
-
Method Detail
-
run
void run(org.apache.flink.util.function.RunnableWithException runnable) throws Exception
- Throws:
Exception
-
runThrowing
<E extends Throwable> void runThrowing(org.apache.flink.util.function.ThrowingRunnable<E> runnable) throws E extends Throwable
- Throws:
E extends Throwable
-
synchronizedExecutor
static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor synchronizedExecutor()
Returns an ExecutionDecorator that synchronizes each invocation.
-
synchronizedExecutor
static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor synchronizedExecutor(Object mutex)
Returns an ExecutionDecorator that synchronizes each invocation on a given object.
-
-