Class TaskExecutorToServiceAdapter
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.TaskExecutorToServiceAdapter
-
- All Implemented Interfaces:
AutoCloseable,TaskManagerRunner.TaskExecutorService,org.apache.flink.util.AutoCloseableAsync
public class TaskExecutorToServiceAdapter extends Object implements TaskManagerRunner.TaskExecutorService
Simple adapter forTaskExecutorto adapt toTaskManagerRunner.TaskExecutorService.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>closeAsync()static TaskExecutorToServiceAdaptercreateFor(TaskExecutor taskExecutor)CompletableFuture<Void>getTerminationFuture()voidstart()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceTaskManagerRunner.TaskExecutorService
-
getTerminationFuture
public CompletableFuture<Void> getTerminationFuture()
- Specified by:
getTerminationFuturein interfaceTaskManagerRunner.TaskExecutorService
-
closeAsync
public CompletableFuture<Void> closeAsync()
- Specified by:
closeAsyncin interfaceorg.apache.flink.util.AutoCloseableAsync
-
createFor
public static TaskExecutorToServiceAdapter createFor(TaskExecutor taskExecutor)
-
-