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
).@Deprecated public static class StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor extends Object implements StreamTaskActionExecutor
StreamTaskActionExecutor
that synchronizes every operation on the provided mutex.StreamTaskActionExecutor.SynchronizedStreamTaskActionExecutor
IMMEDIATE
Constructor and Description |
---|
SynchronizedStreamTaskActionExecutor(Object mutex)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<R> R |
call(Callable<R> callable)
Deprecated.
|
Object |
getMutex()
Deprecated.
|
void |
run(RunnableWithException runnable)
Deprecated.
|
<E extends Throwable> |
runThrowing(ThrowingRunnable<E> runnable)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
synchronizedExecutor, synchronizedExecutor
public SynchronizedStreamTaskActionExecutor(Object mutex)
public void run(RunnableWithException runnable) throws Exception
run
in interface StreamTaskActionExecutor
Exception
public <E extends Throwable> void runThrowing(ThrowingRunnable<E> runnable) throws E extends Throwable
runThrowing
in interface StreamTaskActionExecutor
E extends Throwable
public <R> R call(Callable<R> callable) throws Exception
call
in interface StreamTaskActionExecutor
Exception
public Object getMutex()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.