Class FutureUtils.CompletionBuilder<T>
java.lang.Object
org.eclipse.milo.opcua.stack.core.util.FutureUtils.CompletionBuilder<T>
- Enclosing class:
- FutureUtils
-
Method Summary
Modifier and TypeMethodDescriptionTurn thisFutureUtils.CompletionBuilderinto anFutureUtils.AsyncCompletionBuilder.with(CompletableFuture<T> future) Complete the contained to-be-completedCompletableFutureusing the result offuture.
-
Method Details
-
async
Turn thisFutureUtils.CompletionBuilderinto anFutureUtils.AsyncCompletionBuilder.- Parameters:
executor- theExecutorto use for the async completion.- Returns:
- an
FutureUtils.AsyncCompletionBuilder.
-
with
Complete the contained to-be-completedCompletableFutureusing the result offuture.- Parameters:
future- theCompletableFutureto use as the result for the contained future.- Returns:
- the original, to-be-completed future provided to this
FutureUtils.CompletionBuilder.
-