Interface StreamTaskActionExecutor
- All Known Implementing Classes:
StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
@Internal
public interface StreamTaskActionExecutor
Executes
Runnable, ThrowingRunnable, or Callable. Intended to customize
execution in sub-types of StreamTask,
e.g. synchronization in SourceStreamTask.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<R> Rvoidrun(org.apache.flink.util.function.RunnableWithException runnable) <E extends Throwable>
voidrunThrowing(org.apache.flink.util.function.ThrowingRunnable<E> runnable) Returns an ExecutionDecorator that synchronizes each invocation.synchronizedExecutor(Object mutex) Returns an ExecutionDecorator that synchronizes each invocation on a given object.
-
Field Details
-
IMMEDIATE
-
-
Method Details
-
run
- Throws:
Exception
-
runThrowing
<E extends Throwable> void runThrowing(org.apache.flink.util.function.ThrowingRunnable<E> runnable) throws E - Throws:
E extends Throwable
-
call
- Throws:
Exception
-
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.
-
SourceStreamTaskwhich exposes the checkpoint lock as part of Public API.