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 TypeInterfaceDescriptioninterfaceThe 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 givenhandlerupon completion.default <U> Future<U>Compose this future with amapperfunction.<U> Future<U>Compose this future with asuccessMapperandfailureMapperfunctions.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 asupplierthat 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 thehandlerbefore it is returned.Promise.future()<U> Future<U>Apply amapperfunction 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 amapperfunction 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 amapperfunctions.Methods in dev.webfx.platform.async with parameters of type FutureModifier and TypeMethodDescriptionstatic CompositeFutureReturn a composite future, succeeded when all futures are succeeded, failed when any future is failed.static CompositeFutureLikeall(Future, Future)but with 3 futures.static CompositeFutureLikeall(Future, Future)but with 4 futures.static CompositeFutureLikeall(Future, Future)but with 5 futures.static CompositeFutureLikeall(Future, Future)but with 6 futures.static CompositeFutureReturn a composite future, succeeded when any futures is succeeded, failed when all futures are failed.static CompositeFutureLikeany(Future, Future)but with 3 futures.static CompositeFutureLikeany(Future, Future)but with 4 futures.static CompositeFutureLikeany(Future, Future)but with 5 futures.static CompositeFutureLikeany(Future, Future)but with 6 futures.static CompositeFutureReturn a composite future, succeeded when all futures are succeeded, failed when any future is failed.static CompositeFutureLikejoin(Future, Future)but with 3 futures.static CompositeFutureLikejoin(Future, Future)but with 4 futures.static CompositeFutureLikejoin(Future, Future)but with 5 futures.static CompositeFutureLikejoin(Future, Future)but with 6 futures.Method parameters in dev.webfx.platform.async with type arguments of type FutureModifier and TypeMethodDescriptionstatic CompositeFutureLikeall(Future, Future)but with a list of futures.static CompositeFutureLikeany(Future, Future)but with a list of futures.default <U> Future<U>Compose this future with amapperfunction.<U> Future<U>Compose this future with asuccessMapperandfailureMapperfunctions.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 asupplierthat will be always be called.default <U> Future<U>Alias forcompose(Function).static CompositeFutureLikejoin(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 amapperfunctions.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 TypeInterfaceDescriptioninterfaceExpose some of the future internal stuff.interfaceClasses in dev.webfx.platform.async.impl that implement FutureModifier and TypeClassDescriptionclassfinal classFailedFuture<T>Failed future implementation.classFutureImpl<T>Future implementation.final classPromiseImpl<T>Promise implementation.final classSucceeded 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 CompositeFuturestatic CompositeFuturestatic 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 TypeMethodDescriptionvoidBrowsingHistory.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 TypeMethodDescriptionvoidBrowsingHistoryBase.listenBeforeAsync(Function<BrowsingHistoryLocation, Future<Boolean>> transitionHook)
eventually(Supplier), this method will be removed in Vert.x 5