public class TaskExecutorToServiceAdapter extends Object implements TaskManagerRunner.TaskExecutorService
TaskExecutor
to adapt to TaskManagerRunner.TaskExecutorService
.Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
closeAsync()
Trigger the closing of the resource and return the corresponding close future.
|
static TaskExecutorToServiceAdapter |
createFor(TaskExecutor taskExecutor) |
CompletableFuture<Void> |
getTerminationFuture() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public void start()
start
in interface TaskManagerRunner.TaskExecutorService
public CompletableFuture<Void> getTerminationFuture()
getTerminationFuture
in interface TaskManagerRunner.TaskExecutorService
public CompletableFuture<Void> closeAsync()
AutoCloseableAsync
closeAsync
in interface AutoCloseableAsync
public static TaskExecutorToServiceAdapter createFor(TaskExecutor taskExecutor)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.