V
- the response type of the taskpublic abstract class Task<V> extends Object
Job
.Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
void |
execute(BlockWorkerClient client)
run the task and set the response future.
|
com.google.common.util.concurrent.ListenableFuture<V> |
getResponseFuture() |
protected abstract com.google.common.util.concurrent.ListenableFuture<V> |
run(BlockWorkerClient client)
run the task.
|
protected abstract com.google.common.util.concurrent.ListenableFuture<V> run(BlockWorkerClient client)
public com.google.common.util.concurrent.ListenableFuture<V> getResponseFuture()
public void execute(BlockWorkerClient client)
client
- worker clientCopyright © 2023. All Rights Reserved.