Uses of Interface
org.osgi.util.promise.Promise

  • Uses of Promise in org.osgi.util.promise

    Methods in org.osgi.util.promise that return Promise
    Modifier and Type
    Method
    Description
    <T, S extends T>
    Promise<List<T>>
    PromiseFactory.all(Collection<Promise<S>> promises)
    Returns a new Promise that is a latch on the resolution of the specified Promises.
    static <T, S extends T>
    Promise<List<T>>
    Promises.all(Collection<Promise<S>> promises)
    Returns a new Promise that is a latch on the resolution of the specified Promises.
    static <T> Promise<List<T>>
    Promises.all(Promise<? extends T>... promises)
    Returns a new Promise that is a latch on the resolution of the specified Promises.
    Success.call(Promise<T> resolved)
    Success callback for a Promise.
    Promise.delay(long milliseconds)
    Delay after the resolution of this Promise.
    <T> Promise<T>
    PromiseFactory.failed(Throwable failure)
    Returns a new Promise that has been resolved with the specified failure.
    static <T> Promise<T>
    Promises.failed(Throwable failure)
    Returns a new Promise that has been resolved with the specified failure.
    Promise.fallbackTo(Promise<? extends T> fallback)
    Fall back to the value of the specified Promise if this Promise fails.
    Promise.fallbackTo(Promise<? extends T> fallback, Class<?> failureType)
    Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.
    Promise.filter(org.osgi.util.function.Predicate<? super T> predicate)
    Filter the value of this Promise.
    <R> Promise<R>
    Promise.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper)
    FlatMap the value of this Promise.
    Deferred.getPromise()
    Returns the Promise associated with this Deferred.
    <R> Promise<R>
    Promise.map(org.osgi.util.function.Function<? super T,? extends R> mapper)
    Map the value of this Promise.
    <F> Promise<T>
    Promise.onFailure(org.osgi.util.function.Consumer<? super F> failure, Class<? extends F> failureType)
    Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure of a failure type.
    Promise.onFailure(org.osgi.util.function.Consumer<? super Throwable> failure)
    Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.
    Promise.onResolve(Runnable callback)
    Register a callback to be called when this Promise is resolved.
    Promise.onSuccess(org.osgi.util.function.Consumer<? super T> success)
    Register a callback to be called with the result of this Promise when this Promise is resolved successfully.
    Promise.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery)
    Recover from a failure of this Promise with a recovery value.
    Promise.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery, Class<?> failureType)
    Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.
    Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery, Class<?> failureType)
    Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.
    <T> Promise<T>
    PromiseFactory.resolved(T value)
    Returns a new Promise that has been resolved with the specified value.
    static <T> Promise<T>
    Promises.resolved(T value)
    Returns a new Promise that has been resolved with the specified value.
    <T> Promise<T>
    PromiseFactory.resolvedWith(CompletionStage<? extends T> with)
    Returns a new Promise that will be resolved with the result of the specified CompletionStage.
    <T> Promise<T>
    PromiseFactory.resolvedWith(Promise<? extends T> with)
    Returns a new Promise that will be resolved with the specified Promise.
    Deferred.resolveWith(CompletionStage<? extends T> with)
    Resolve the Promise associated with this Deferred with the specified CompletionStage.
    Deferred.resolveWith(Promise<? extends T> with)
    Resolve the Promise associated with this Deferred with the specified Promise.
    <T> Promise<T>
    PromiseFactory.submit(Callable<? extends T> task)
    Returns a new Promise that will hold the result of the specified task.
    <R> Promise<R>
    Promise.then(Success<? super T,? extends R> success)
    Chain a new Promise to this Promise with a Success callback.
    <R> Promise<R>
    Promise.then(Success<? super T,? extends R> success, Failure failure)
    Chain a new Promise to this Promise with Success and Failure callbacks.
    Promise.thenAccept(org.osgi.util.function.Consumer<? super T> consumer)
    Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.
    Promise.timeout(long milliseconds)
    Time out the resolution of this Promise.
    Methods in org.osgi.util.promise that return types with arguments of type Promise
    Modifier and Type
    Method
    Description
    FailedPromisesException.getFailedPromises()
    Returns the collection of Promises that have been resolved with a failure.
    <T, S extends T>
    Collector<Promise<S>,?,Promise<List<T>>>
    PromiseFactory.toPromise()
    Returns a Collector that accumulates the results of the input Promises into a new PromiseFactory.all(Collection) Promise.
    <T, S extends T>
    Collector<Promise<S>,?,Promise<List<T>>>
    PromiseFactory.toPromise()
    Returns a Collector that accumulates the results of the input Promises into a new PromiseFactory.all(Collection) Promise.
    Methods in org.osgi.util.promise with parameters of type Promise
    Modifier and Type
    Method
    Description
    static <T> Promise<List<T>>
    Promises.all(Promise<? extends T>... promises)
    Returns a new Promise that is a latch on the resolution of the specified Promises.
    Success.call(Promise<T> resolved)
    Success callback for a Promise.
    void
    Failure.fail(Promise<?> resolved)
    Failure callback for a Promise.
    Promise.fallbackTo(Promise<? extends T> fallback)
    Fall back to the value of the specified Promise if this Promise fails.
    Promise.fallbackTo(Promise<? extends T> fallback, Class<?> failureType)
    Fall back to the value of the specified Promise if this Promise fails and the failure is an instance of a failure type.
    <T> Promise<T>
    PromiseFactory.resolvedWith(Promise<? extends T> with)
    Returns a new Promise that will be resolved with the specified Promise.
    Deferred.resolveWith(Promise<? extends T> with)
    Resolve the Promise associated with this Deferred with the specified Promise.
    Method parameters in org.osgi.util.promise with type arguments of type Promise
    Modifier and Type
    Method
    Description
    <T, S extends T>
    Promise<List<T>>
    PromiseFactory.all(Collection<Promise<S>> promises)
    Returns a new Promise that is a latch on the resolution of the specified Promises.
    static <T, S extends T>
    Promise<List<T>>
    Promises.all(Collection<Promise<S>> promises)
    Returns a new Promise that is a latch on the resolution of the specified Promises.
    <R> Promise<R>
    Promise.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper)
    FlatMap the value of this Promise.
    Promise.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery)
    Recover from a failure of this Promise with a recovery value.
    Promise.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery, Class<?> failureType)
    Recover from a failure of this Promise with a recovery value if the failure is an instance of a failure type.
    Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery, Class<?> failureType)
    Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.
    Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery, Class<?> failureType)
    Recover from a failure of this Promise with a recovery Promise if the failure is an instance of a failure type.
    Constructor parameters in org.osgi.util.promise with type arguments of type Promise
    Modifier
    Constructor
    Description
     
    Create a new FailedPromisesException with the specified Promises.