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 Details

    • AsyncCallbackToCompletableFutureAdapter

      public AsyncCallbackToCompletableFutureAdapter()
    • AsyncCallbackToCompletableFutureAdapter

      public AsyncCallbackToCompletableFutureAdapter(T result)
    • AsyncCallbackToCompletableFutureAdapter

      public AsyncCallbackToCompletableFutureAdapter(CompletableFuture<T> future, T result)
  • Method Details

    • setResult

      public void setResult(T result)
    • getFuture

      public CompletableFuture<T> getFuture()
    • done

      public void done(boolean doneSync)
      Specified by:
      done in interface org.apache.camel.AsyncCallback