Class ComponentMainThreadExecutor.DummyComponentMainThreadExecutor
- java.lang.Object
-
- org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor.DummyComponentMainThreadExecutor
-
- All Implemented Interfaces:
Executor,ComponentMainThreadExecutor,org.apache.flink.util.concurrent.ScheduledExecutor
- Enclosing interface:
- ComponentMainThreadExecutor
public static final class ComponentMainThreadExecutor.DummyComponentMainThreadExecutor extends Object implements ComponentMainThreadExecutor
Dummy implementation of ComponentMainThreadExecutor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor
ComponentMainThreadExecutor.DummyComponentMainThreadExecutor
-
-
Constructor Summary
Constructors Constructor Description DummyComponentMainThreadExecutor(String exceptionMessageOnInvocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertRunningInMainThread()Returns true if the method was called in the thread of this executor.voidexecute(Runnable command)ScheduledFuture<?>schedule(Runnable command, long delay, TimeUnit unit)<V> ScheduledFuture<V>schedule(Callable<V> callable, long delay, TimeUnit unit)ScheduledFuture<?>scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)ScheduledFuture<?>scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
-
-
-
Constructor Detail
-
DummyComponentMainThreadExecutor
public DummyComponentMainThreadExecutor(String exceptionMessageOnInvocation)
-
-
Method Detail
-
assertRunningInMainThread
public void assertRunningInMainThread()
Description copied from interface:ComponentMainThreadExecutorReturns true if the method was called in the thread of this executor.- Specified by:
assertRunningInMainThreadin interfaceComponentMainThreadExecutor
-
schedule
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
- Specified by:
schedulein interfaceorg.apache.flink.util.concurrent.ScheduledExecutor
-
schedule
public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
- Specified by:
schedulein interfaceorg.apache.flink.util.concurrent.ScheduledExecutor
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
- Specified by:
scheduleAtFixedRatein interfaceorg.apache.flink.util.concurrent.ScheduledExecutor
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
- Specified by:
scheduleWithFixedDelayin interfaceorg.apache.flink.util.concurrent.ScheduledExecutor
-
-