Uses of Interface
dev.webfx.platform.async.Future
Packages that use Future
Package
Description
-
Uses of Future in dev.webfx.platform.async
Subinterfaces of Future in dev.webfx.platform.asyncModifier and TypeInterfaceDescriptioninterface
The composite future wraps a list offutures
, it is useful when several futures needs to be coordinated.Methods in dev.webfx.platform.async that return FutureModifier and TypeMethodDescriptionFuture.andThen
(Handler<AsyncResult<T>> handler) Invokes the givenhandler
upon completion.default <U> Future<U>
Compose this future with amapper
function.<U> Future<U>
Compose this future with asuccessMapper
andfailureMapper
functions.static <T,
R> Future<R> AsyncUtil.consumeAsync
(Consumer<T> consumer, T arg) Wrap a consumer into a future that complete immediately or fail if an exception is thrown.Future.eventually
(Function<Void, Future<U>> function) Deprecated.Future.eventually
(Supplier<Future<U>> supplier) Compose this future with asupplier
that will be always be called.Batch.executeIfSingularBatch
(IntFunction<R[]> arrayGenerator, AsyncFunction<A, R> asyncFunction) Batch.executeParallel
(Promise<Batch<R>> promise, IntFunction<R[]> arrayGenerator, AsyncFunction<A, R> asyncFunction) Batch.executeParallel
(IntFunction<R[]> arrayGenerator, AsyncFunction<A, R> asyncFunction) Batch.executeSerial
(Promise<Batch<R>> promise, IntFunction<R[]> arrayGenerator, AsyncFunction<A, R> asyncFunction) Batch.executeSerial
(IntFunction<R[]> arrayGenerator, AsyncFunction<A, R> asyncFunction) static <T> Future<T>
Future.failedFuture
(String failureMessage) Create a failed future with the specified failure message.static <T> Future<T>
Future.failedFuture
(Throwable t) Create a failed future with the specified failure cause.default <U> Future<U>
Alias forcompose(Function)
.static <T> Future<T>
Create a future that hasn't completed yet and that is passed to thehandler
before it is returned.Promise.future()
<U> Future<U>
Apply amapper
function on this future.<V> Future<V>
Future.map
(V value) Map the result of a future to a specificvalue
.default <V> Future<V>
Future.mapEmpty()
Map the result of a future tonull
.FutureBroadcaster.newClient()
Future.onComplete
(Handler<AsyncResult<T>> handler) Add a handler to be notified of the result.Future.onComplete
(Handler<T> successHandler, Handler<Throwable> failureHandler) Add handlers to be notified on succeeded result and failed result.Add a handler to be notified of the failed result.Add a handler to be notified of the succeeded result.Apply amapper
function on this future.Map the failure of a future to a specificvalue
.Future.otherwiseEmpty()
Map the failure of a future tonull
.Handles a failure of this Future by returning the result of another Future.static <R> Future<R>
Wrap a runnable into a future that complete immediately or fail if an exception is thrown.static <T> Future<T>
Future.succeededFuture()
Create a succeeded future with a null resultstatic <T> Future<T>
Future.succeededFuture
(T result) Created a succeeded future with the specified result.<U> Future<U>
Future.transform
(Function<AsyncResult<T>, Future<U>> mapper) Transform this future with amapper
functions.Methods in dev.webfx.platform.async with parameters of type FutureModifier and TypeMethodDescriptionstatic CompositeFuture
Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.static CompositeFuture
Likeall(Future, Future)
but with 3 futures.static CompositeFuture
Likeall(Future, Future)
but with 4 futures.static CompositeFuture
Likeall(Future, Future)
but with 5 futures.static CompositeFuture
Likeall(Future, Future)
but with 6 futures.static CompositeFuture
Return a composite future, succeeded when any futures is succeeded, failed when all futures are failed.static CompositeFuture
Likeany(Future, Future)
but with 3 futures.static CompositeFuture
Likeany(Future, Future)
but with 4 futures.static CompositeFuture
Likeany(Future, Future)
but with 5 futures.static CompositeFuture
Likeany(Future, Future)
but with 6 futures.static CompositeFuture
Return a composite future, succeeded when all futures are succeeded, failed when any future is failed.static CompositeFuture
Likejoin(Future, Future)
but with 3 futures.static CompositeFuture
Likejoin(Future, Future)
but with 4 futures.static CompositeFuture
Likejoin(Future, Future)
but with 5 futures.static CompositeFuture
Likejoin(Future, Future)
but with 6 futures.Method parameters in dev.webfx.platform.async with type arguments of type FutureModifier and TypeMethodDescriptionstatic CompositeFuture
Likeall(Future, Future)
but with a list of futures.static CompositeFuture
Likeany(Future, Future)
but with a list of futures.default <U> Future<U>
Compose this future with amapper
function.<U> Future<U>
Compose this future with asuccessMapper
andfailureMapper
functions.Future.eventually
(Function<Void, Future<U>> function) Deprecated.instead useeventually(Supplier)
, this method will be removed in Vert.x 5Future.eventually
(Supplier<Future<U>> supplier) Compose this future with asupplier
that will be always be called.default <U> Future<U>
Alias forcompose(Function)
.static CompositeFuture
Likejoin(Future, Future)
but with a list of futures.Handles a failure of this Future by returning the result of another Future.<U> Future<U>
Future.transform
(Function<AsyncResult<T>, Future<U>> mapper) Transform this future with amapper
functions.Constructors in dev.webfx.platform.async with parameters of type FutureConstructor parameters in dev.webfx.platform.async with type arguments of type Future -
Uses of Future in dev.webfx.platform.async.impl
Subinterfaces of Future in dev.webfx.platform.async.implModifier and TypeInterfaceDescriptioninterface
Expose some of the future internal stuff.interface
Classes in dev.webfx.platform.async.impl that implement FutureModifier and TypeClassDescriptionclass
final class
FailedFuture<T>
Failed future implementation.class
FutureImpl<T>
Future implementation.final class
PromiseImpl<T>
Promise implementation.final class
Succeeded future implementation.Methods in dev.webfx.platform.async.impl that return FutureModifier and TypeMethodDescriptionPromiseImpl.future()
<U> Future<U>
<V> Future<V>
FailedFuture.map
(V value) <V> Future<V>
SucceededFuture.map
(V value) FailedFuture.onComplete
(Handler<AsyncResult<T>> handler) FutureImpl.onComplete
(Handler<AsyncResult<T>> handler) FutureImpl.onComplete
(Handler<T> successHandler, Handler<Throwable> failureHandler) SucceededFuture.onComplete
(Handler<AsyncResult<T>> handler) Methods in dev.webfx.platform.async.impl with parameters of type FutureModifier and TypeMethodDescriptionstatic CompositeFuture
static CompositeFuture
static CompositeFuture
-
Uses of Future in dev.webfx.platform.conf.spi
Methods in dev.webfx.platform.conf.spi that return Future -
Uses of Future in dev.webfx.platform.conf.spi.impl.file.java
Methods in dev.webfx.platform.conf.spi.impl.file.java that return Future -
Uses of Future in dev.webfx.platform.fetch
Methods in dev.webfx.platform.fetch that return FutureModifier and TypeMethodDescriptionResponse.blob()
Fetch.fetch
(String url, FetchOptions options) Fetch.fetchText
(String url, FetchOptions options) Response.text()
-
Uses of Future in dev.webfx.platform.fetch.json
Methods in dev.webfx.platform.fetch.json that return FutureModifier and TypeMethodDescriptionstatic Future<ReadOnlyAstArray>
JsonFetch.fetchJsonArray
(String url) static Future<ReadOnlyAstArray>
JsonFetch.fetchJsonArray
(String url, FetchOptions fetchOptions) static Future<ReadOnlyAstNode>
JsonFetch.fetchJsonNode
(String url) static Future<ReadOnlyAstNode>
JsonFetch.fetchJsonNode
(String url, FetchOptions fetchOptions) static Future<ReadOnlyAstObject>
JsonFetch.fetchJsonObject
(String url) static Future<ReadOnlyAstObject>
JsonFetch.fetchJsonObject
(String url, FetchOptions fetchOptions) -
Uses of Future in dev.webfx.platform.fetch.spi
Methods in dev.webfx.platform.fetch.spi that return Future -
Uses of Future in dev.webfx.platform.file
Methods in dev.webfx.platform.file that return FutureModifier and TypeMethodDescriptionFuture<byte[]>
FileReader.readAsBytes
(File file) FileReader.readAsText
(File file) -
Uses of Future in dev.webfx.platform.webassembly
Methods in dev.webfx.platform.webassembly that return FutureModifier and TypeMethodDescriptionWebAssemblyModule.instantiate
(WebAssemblyImport... imports) static Future<WebAssemblyInstance>
WebAssembly.loadAndInstantiate
(String webAssemblyUrl, WebAssemblyImport... imports) static Future<WebAssemblyModule>
WebAssembly.loadModule
(String webAssemblyUrl) -
Uses of Future in dev.webfx.platform.webassembly.spi
Methods in dev.webfx.platform.webassembly.spi that return FutureModifier and TypeMethodDescriptiondefault Future<WebAssemblyInstance>
WebAssemblyProvider.loadAndInstantiate
(String webAssemblyUrl, WebAssemblyImport... imports) WebAssemblyProvider.loadModule
(String url) -
Uses of Future in dev.webfx.platform.windowhistory.spi
Method parameters in dev.webfx.platform.windowhistory.spi with type arguments of type FutureModifier and TypeMethodDescriptionvoid
BrowsingHistory.listenBeforeAsync
(Function<BrowsingHistoryLocation, Future<Boolean>> transitionHook) If your transition hook needs to execute asynchronously, you can return a future boolean. -
Uses of Future in dev.webfx.platform.windowhistory.spi.impl
Methods in dev.webfx.platform.windowhistory.spi.impl that return FutureModifier and TypeMethodDescriptionBrowsingHistoryBase.checkBeforeAsync
(BrowsingHistoryLocation location) protected Future<BrowsingHistoryLocationImpl>
BrowsingHistoryBase.checkBeforeThenTransit
(PathStateLocation location, BrowsingHistoryEvent event) protected Future<BrowsingHistoryLocationImpl>
BrowsingHistoryBase.checkBeforeUnloadThenCheckBeforeThenTransit
(PathStateLocation location, BrowsingHistoryEvent event) Method parameters in dev.webfx.platform.windowhistory.spi.impl with type arguments of type FutureModifier and TypeMethodDescriptionvoid
BrowsingHistoryBase.listenBeforeAsync
(Function<BrowsingHistoryLocation, Future<Boolean>> transitionHook)
eventually(Supplier)
, this method will be removed in Vert.x 5