@Internal
public interface StreamTaskActionExecutor
Runnable, ThrowingRunnable, or Callable. Intended to customize
execution in sub-types of StreamTask,
e.g. synchronization in SourceStreamTask.| Modifier and Type | Interface and Description |
|---|---|
static class |
StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
Deprecated.
this class should only be used in
SourceStreamTask which exposes the
checkpoint lock as part of Public API. |
| Modifier and Type | Field and Description |
|---|---|
static StreamTaskActionExecutor |
IMMEDIATE |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
call(Callable<R> callable) |
void |
run(org.apache.flink.util.function.RunnableWithException runnable) |
<E extends Throwable> |
runThrowing(org.apache.flink.util.function.ThrowingRunnable<E> runnable) |
static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor |
synchronizedExecutor()
Returns an ExecutionDecorator that synchronizes each invocation.
|
static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor |
synchronizedExecutor(Object mutex)
Returns an ExecutionDecorator that synchronizes each invocation on a given object.
|
static final StreamTaskActionExecutor IMMEDIATE
void run(org.apache.flink.util.function.RunnableWithException runnable) throws Exception
Exception<E extends Throwable> void runThrowing(org.apache.flink.util.function.ThrowingRunnable<E> runnable) throws E extends Throwable
E extends Throwablestatic StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor synchronizedExecutor()
static StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor synchronizedExecutor(Object mutex)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.