Interface StreamTaskActionExecutor
-
- All Known Implementing Classes:
StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
@Internal public interface StreamTaskActionExecutor
ExecutesRunnable
,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 class
StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
Deprecated.this class should only be used inSourceStreamTask
which exposes the checkpoint lock as part of Public API.
-
Field Summary
Fields Modifier and Type Field Description static StreamTaskActionExecutor
IMMEDIATE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> R
call(Callable<R> callable)
void
run(RunnableWithException runnable)
<E extends Throwable>
voidrunThrowing(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.
-
-
-
Field Detail
-
IMMEDIATE
static final StreamTaskActionExecutor IMMEDIATE
-
-
Method Detail
-
run
void run(RunnableWithException runnable) throws Exception
- Throws:
Exception
-
runThrowing
<E extends Throwable> void runThrowing(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.
-
-