public class AsyncCallbackToCompletableFutureAdapter<T> extends Object implements org.apache.camel.AsyncCallback
CompletableFuture
completed when async action is doneConstructor and Description |
---|
AsyncCallbackToCompletableFutureAdapter() |
AsyncCallbackToCompletableFutureAdapter(CompletableFuture<T> future,
T result) |
AsyncCallbackToCompletableFutureAdapter(T result) |
Modifier and Type | Method and Description |
---|---|
void |
done(boolean doneSync) |
CompletableFuture<T> |
getFuture() |
void |
setResult(T result) |
public AsyncCallbackToCompletableFutureAdapter()
public AsyncCallbackToCompletableFutureAdapter(T result)
public AsyncCallbackToCompletableFutureAdapter(CompletableFuture<T> future, T result)
public void setResult(T result)
public CompletableFuture<T> getFuture()
public void done(boolean doneSync)
done
in interface org.apache.camel.AsyncCallback
Apache Camel