Uses of Class
space.arim.omnibus.util.concurrent.CentralisedFuture
Packages that use CentralisedFuture
Package
Description
Core interfaces for concurrency-related classes.
Contains base implementations for interfaces from the concurrency frameworks
defined by
space.arim.omnibus.util.concurrent-
Uses of CentralisedFuture in space.arim.omnibus.util.concurrent
Methods in space.arim.omnibus.util.concurrent that return CentralisedFutureModifier and TypeMethodDescriptionCentralisedFuture.acceptEither(CompletionStage<? extends T> other, Consumer<? super T> action) CentralisedFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action) CentralisedFuture.acceptEitherAsync(CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor) abstract CentralisedFuture<Void> CentralisedFuture.acceptEitherSync(CompletionStage<? extends T> other, Consumer<? super T> action) <T> CentralisedFuture<?> FactoryOfTheFuture.allOf(Collection<? extends CentralisedFuture<T>> futures) Creates a future which completes when all of the specified futures complete.FactoryOfTheFuture.allOf(CentralisedFuture<?>... futures) Creates a future which completes when all of the specified futures complete.<U> CentralisedFuture<U> CentralisedFuture.applyToEither(CompletionStage<? extends T> other, Function<? super T, U> fn) <U> CentralisedFuture<U> CentralisedFuture.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn) <U> CentralisedFuture<U> CentralisedFuture.applyToEitherAsync(CompletionStage<? extends T> other, Function<? super T, U> fn, Executor executor) abstract <U> CentralisedFuture<U> CentralisedFuture.applyToEitherSync(CompletionStage<? extends T> other, Function<? super T, U> fn) CentralisedFuture.completeAsync(Supplier<? extends T> supplier) CentralisedFuture.completeAsync(Supplier<? extends T> supplier, Executor executor) <T> CentralisedFuture<T> FactoryOfTheFuture.completedFuture(T value) Creates a precompleted future which has completed normally with the given value.CentralisedFuture.completeOnTimeout(T value, long timeout, TimeUnit unit) abstract CentralisedFuture<T> CentralisedFuture.completeSync(Supplier<? extends T> supplier) CentralisedFuture.copy()<T> CentralisedFuture<T> FactoryOfTheFuture.copyFuture(CompletableFuture<T> completableFuture) Copies aCompletableFutureto aCentralisedFuture.CentralisedFuture.exceptionally(Function<Throwable, ? extends T> fn) <T> CentralisedFuture<T> FactoryOfTheFuture.failedFuture(Throwable ex) Creates a precompleted future which has completed exceptionally with the given exception.<U> CentralisedFuture<U> CentralisedFuture.handle(BiFunction<? super T, Throwable, ? extends U> fn) <U> CentralisedFuture<U> CentralisedFuture.handleAsync(BiFunction<? super T, Throwable, ? extends U> fn) <U> CentralisedFuture<U> CentralisedFuture.handleAsync(BiFunction<? super T, Throwable, ? extends U> fn, Executor executor) abstract <U> CentralisedFuture<U> CentralisedFuture.handleSync(BiFunction<? super T, Throwable, ? extends U> fn) abstract <U> CentralisedFuture<U> CentralisedFuture.newIncompleteFuture()<T> CentralisedFuture<T> FactoryOfTheFuture.newIncompleteFuture()Creates an incomplete future.CentralisedFuture.runAfterBoth(CompletionStage<?> other, Runnable action) CentralisedFuture.runAfterBothAsync(CompletionStage<?> other, Runnable action) CentralisedFuture.runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) abstract CentralisedFuture<Void> CentralisedFuture.runAfterBothSync(CompletionStage<?> other, Runnable action) CentralisedFuture.runAfterEither(CompletionStage<?> other, Runnable action) CentralisedFuture.runAfterEitherAsync(CompletionStage<?> other, Runnable action) CentralisedFuture.runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) abstract CentralisedFuture<Void> CentralisedFuture.runAfterEitherSync(CompletionStage<?> other, Runnable action) Runs aRunnableasynchronously and returns a future indicating its progress.Runs aRunnableon the main thread if a main thread exists, else appropriately, per the specifications ofSynchronousExecutor.executeSync(Runnable).<T> CentralisedFuture<T> FactoryOfTheFuture.supplyAsync(Supplier<T> supplier) Supplies a value asynchronously and returns a future indicating its progress.<T> CentralisedFuture<T> FactoryOfTheFuture.supplyAsync(Supplier<T> supplier, Executor executor) Supplies a value asynchronously using the providedExecutorand returns a future indicating its progress.<T> CentralisedFuture<T> FactoryOfTheFuture.supplySync(Supplier<T> supplier) Supplies a value on the main thread if a main thread exists, else appropriately, per the specifications ofSynchronousExecutor.executeSync(Runnable).CentralisedFuture.thenAccept(Consumer<? super T> action) CentralisedFuture.thenAcceptAsync(Consumer<? super T> action) CentralisedFuture.thenAcceptAsync(Consumer<? super T> action, Executor executor) <U> CentralisedFuture<Void> CentralisedFuture.thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) <U> CentralisedFuture<Void> CentralisedFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) <U> CentralisedFuture<Void> CentralisedFuture.thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor) abstract <U> CentralisedFuture<Void> CentralisedFuture.thenAcceptBothSync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) abstract CentralisedFuture<Void> CentralisedFuture.thenAcceptSync(Consumer<? super T> action) <U> CentralisedFuture<U> <U> CentralisedFuture<U> CentralisedFuture.thenApplyAsync(Function<? super T, ? extends U> fn) <U> CentralisedFuture<U> CentralisedFuture.thenApplyAsync(Function<? super T, ? extends U> fn, Executor executor) abstract <U> CentralisedFuture<U> CentralisedFuture.thenApplySync(Function<? super T, ? extends U> fn) <U,V> CentralisedFuture <V> CentralisedFuture.thenCombine(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) <U,V> CentralisedFuture <V> CentralisedFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) <U,V> CentralisedFuture <V> CentralisedFuture.thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn, Executor executor) abstract <U,V> CentralisedFuture <V> CentralisedFuture.thenCombineSync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) <U> CentralisedFuture<U> CentralisedFuture.thenCompose(Function<? super T, ? extends CompletionStage<U>> fn) <U> CentralisedFuture<U> CentralisedFuture.thenComposeAsync(Function<? super T, ? extends CompletionStage<U>> fn) <U> CentralisedFuture<U> CentralisedFuture.thenComposeAsync(Function<? super T, ? extends CompletionStage<U>> fn, Executor executor) abstract <U> CentralisedFuture<U> CentralisedFuture.thenComposeSync(Function<? super T, ? extends CompletionStage<U>> fn) CentralisedFuture.thenRunAsync(Runnable action) CentralisedFuture.thenRunAsync(Runnable action, Executor executor) abstract CentralisedFuture<Void> CentralisedFuture.thenRunSync(Runnable action) CentralisedFuture.toCompletableFuture()ReactionStage.toCompletableFuture()Converts to an equivalent CentralisedFuture with the same completion properties as this.CentralisedFuture.whenComplete(BiConsumer<? super T, ? super Throwable> action) CentralisedFuture.whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action) CentralisedFuture.whenCompleteAsync(BiConsumer<? super T, ? super Throwable> action, Executor executor) abstract CentralisedFuture<T> CentralisedFuture.whenCompleteSync(BiConsumer<? super T, ? super Throwable> action) Methods in space.arim.omnibus.util.concurrent with parameters of type CentralisedFutureModifier and TypeMethodDescriptionFactoryOfTheFuture.allOf(CentralisedFuture<?>... futures) Creates a future which completes when all of the specified futures complete.Method parameters in space.arim.omnibus.util.concurrent with type arguments of type CentralisedFutureModifier and TypeMethodDescription<T> CentralisedFuture<?> FactoryOfTheFuture.allOf(Collection<? extends CentralisedFuture<T>> futures) Creates a future which completes when all of the specified futures complete. -
Uses of CentralisedFuture in space.arim.omnibus.util.concurrent.impl
Subclasses of CentralisedFuture in space.arim.omnibus.util.concurrent.implModifier and TypeClassDescriptionclassImplementation ofCentralisedFutureusing aSynchronousExecutorfor Sync methods.classCentralisedFutureimplementation which regards Sync method calls as identical to Async calls using the default executor.Methods in space.arim.omnibus.util.concurrent.impl that return CentralisedFutureModifier and TypeMethodDescriptionBaseCentralisedFuture.acceptEitherSync(CompletionStage<? extends T> other, Consumer<? super T> action) IndifferentCentralisedFuture.acceptEitherSync(CompletionStage<? extends T> other, Consumer<? super T> action) <T> CentralisedFuture<?> AbstractFactoryOfTheFuture.allOf(Collection<? extends CentralisedFuture<T>> futures) AbstractFactoryOfTheFuture.allOf(CentralisedFuture<?>... futures) <U> CentralisedFuture<U> BaseCentralisedFuture.applyToEitherSync(CompletionStage<? extends T> other, Function<? super T, U> fn) <U> CentralisedFuture<U> IndifferentCentralisedFuture.applyToEitherSync(CompletionStage<? extends T> other, Function<? super T, U> fn) <T> CentralisedFuture<T> AbstractFactoryOfTheFuture.completedFuture(T value) BaseCentralisedFuture.completeSync(Supplier<? extends T> supplier) IndifferentCentralisedFuture.completeSync(Supplier<? extends T> supplier) <T> CentralisedFuture<T> AbstractFactoryOfTheFuture.copyFuture(CompletableFuture<T> completableFuture) <T> CentralisedFuture<T> AbstractFactoryOfTheFuture.failedFuture(Throwable ex) <U> CentralisedFuture<U> BaseCentralisedFuture.handleSync(BiFunction<? super T, Throwable, ? extends U> fn) <U> CentralisedFuture<U> IndifferentCentralisedFuture.handleSync(BiFunction<? super T, Throwable, ? extends U> fn) abstract <U> CentralisedFuture<U> AbstractFactoryOfTheFuture.newIncompleteFuture()Creates a new, incomplete future.<U> CentralisedFuture<U> BaseCentralisedFuture.newIncompleteFuture()<U> CentralisedFuture<U> IndifferentCentralisedFuture.newIncompleteFuture()<U> CentralisedFuture<U> IndifferentFactoryOfTheFuture.newIncompleteFuture()BaseCentralisedFuture.runAfterBothSync(CompletionStage<?> other, Runnable action) IndifferentCentralisedFuture.runAfterBothSync(CompletionStage<?> other, Runnable action) BaseCentralisedFuture.runAfterEitherSync(CompletionStage<?> other, Runnable action) IndifferentCentralisedFuture.runAfterEitherSync(CompletionStage<?> other, Runnable action) <T> CentralisedFuture<T> AbstractFactoryOfTheFuture.supplyAsync(Supplier<T> supplier) <T> CentralisedFuture<T> AbstractFactoryOfTheFuture.supplyAsync(Supplier<T> supplier, Executor executor) <T> CentralisedFuture<T> AbstractFactoryOfTheFuture.supplySync(Supplier<T> supplier) <U> CentralisedFuture<Void> BaseCentralisedFuture.thenAcceptBothSync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) <U> CentralisedFuture<Void> IndifferentCentralisedFuture.thenAcceptBothSync(CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action) BaseCentralisedFuture.thenAcceptSync(Consumer<? super T> action) IndifferentCentralisedFuture.thenAcceptSync(Consumer<? super T> action) <U> CentralisedFuture<U> BaseCentralisedFuture.thenApplySync(Function<? super T, ? extends U> fn) <U> CentralisedFuture<U> IndifferentCentralisedFuture.thenApplySync(Function<? super T, ? extends U> fn) <U,V> CentralisedFuture <V> BaseCentralisedFuture.thenCombineSync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) <U,V> CentralisedFuture <V> IndifferentCentralisedFuture.thenCombineSync(CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn) <U> CentralisedFuture<U> BaseCentralisedFuture.thenComposeSync(Function<? super T, ? extends CompletionStage<U>> fn) <U> CentralisedFuture<U> IndifferentCentralisedFuture.thenComposeSync(Function<? super T, ? extends CompletionStage<U>> fn) BaseCentralisedFuture.thenRunSync(Runnable action) IndifferentCentralisedFuture.thenRunSync(Runnable action) BaseCentralisedFuture.whenCompleteSync(BiConsumer<? super T, ? super Throwable> action) IndifferentCentralisedFuture.whenCompleteSync(BiConsumer<? super T, ? super Throwable> action) Methods in space.arim.omnibus.util.concurrent.impl with parameters of type CentralisedFutureModifier and TypeMethodDescriptionAbstractFactoryOfTheFuture.allOf(CentralisedFuture<?>... futures) Method parameters in space.arim.omnibus.util.concurrent.impl with type arguments of type CentralisedFutureModifier and TypeMethodDescription<T> CentralisedFuture<?> AbstractFactoryOfTheFuture.allOf(Collection<? extends CentralisedFuture<T>> futures)