Package org.apache.camel.support
Class AsyncCallbackToCompletableFutureAdapter<T>
java.lang.Object
org.apache.camel.support.AsyncCallbackToCompletableFutureAdapter<T>
- All Implemented Interfaces:
Runnable
,org.apache.camel.AsyncCallback
public class AsyncCallbackToCompletableFutureAdapter<T>
extends Object
implements org.apache.camel.AsyncCallback
AsyncCallback that provides a
CompletableFuture
completed when async action is done-
Constructor Summary
ConstructorsConstructorDescriptionAsyncCallbackToCompletableFutureAdapter
(CompletableFuture<T> future, T result) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.AsyncCallback
run
-
Constructor Details
-
AsyncCallbackToCompletableFutureAdapter
public AsyncCallbackToCompletableFutureAdapter() -
AsyncCallbackToCompletableFutureAdapter
-
AsyncCallbackToCompletableFutureAdapter
-
-
Method Details
-
setResult
-
getFuture
-
done
public void done(boolean doneSync) - Specified by:
done
in interfaceorg.apache.camel.AsyncCallback
-