@Internal
public interface StreamTaskActionExecutor
Runnable, ThrowingRunnable, or Callable.
Intended to customize execution in sub-types of StreamTask,
e.g. synchronization in SourceStreamTask.| 限定符和类型 | 接口和说明 |
|---|---|
static class |
StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
已过时。
this class should only be used in
SourceStreamTask which exposes the checkpoint lock as part of Public API.
During transitional period it is used in StreamTask (until StreamTask.getCheckpointLock()
is pushed down to SourceStreamTask). |
| 限定符和类型 | 字段和说明 |
|---|---|
static StreamTaskActionExecutor |
IMMEDIATE |
| 限定符和类型 | 方法和说明 |
|---|---|
<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–2021 The Apache Software Foundation. All rights reserved.