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

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

    Classes in org.osgi.util.promise that implement Promise
    Modifier and Type
    Class
    Description
    (package private) final class 
    Deferred Promise implementation.
    (package private) final class 
    Failed Promise implementation.
    (package private) class 
    Abstract Promise implementation.
    (package private) final class 
    Resolved Promise implementation.
    Fields in org.osgi.util.promise declared as Promise
    Modifier and Type
    Field
    Description
    private final Promise<? extends T>
    DeferredPromiseImpl.FallbackChain.fallback
     
    private final Promise<? extends T>
    DeferredPromiseImpl.FallbackTo.fallback
     
    private final Promise<? extends T>
    DeferredPromiseImpl.Chain.promise
     
    private final Promise<? extends T>
    DeferredPromiseImpl.ResolveWith.with
     
    Fields in org.osgi.util.promise with type parameters of type Promise
    Modifier and Type
    Field
    Description
    private final Collection<Promise<?>>
    FailedPromisesException.failed
     
    private final org.osgi.util.function.Function<? super P,Promise<? extends T>>
    DeferredPromiseImpl.FlatMap.mapper
     
    private final List<Promise<S>>
    PromiseFactory.All.promises
     
    private final org.osgi.util.function.Function<Promise<?>,? extends T>
    DeferredPromiseImpl.Recover.recovery
     
    private final org.osgi.util.function.Function<Promise<?>,Promise<? extends T>>
    DeferredPromiseImpl.RecoverWith.recovery
     
    private final org.osgi.util.function.Function<Promise<?>,Promise<? extends T>>
    DeferredPromiseImpl.RecoverWith.recovery
     
    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.
    PromiseImpl.delay(long millis)
    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.
    PromiseImpl.fallbackTo(Promise<? extends T> fallback)
    Fall back to the value of the specified Promise if this Promise fails.
    PromiseImpl.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.
    ResolvedPromiseImpl.fallbackTo(Promise<? extends T> fallback)
    Fall back to the value of the specified Promise if this Promise fails.
    ResolvedPromiseImpl.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.
    FailedPromiseImpl.filter(org.osgi.util.function.Predicate<? super T> predicate)
    Filter the value of this Promise.
    Promise.filter(org.osgi.util.function.Predicate<? super T> predicate)
    Filter the value of this Promise.
    PromiseImpl.filter(org.osgi.util.function.Predicate<? super T> predicate)
    Filter the value of this Promise.
    <R> Promise<R>
    FailedPromiseImpl.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper)
    FlatMap 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.
    <R> Promise<R>
    PromiseImpl.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>
    FailedPromiseImpl.map(org.osgi.util.function.Function<? super T,? extends R> mapper)
    Map the value of this Promise.
    <R> Promise<R>
    Promise.map(org.osgi.util.function.Function<? super T,? extends R> mapper)
    Map the value of this Promise.
    <R> Promise<R>
    PromiseImpl.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.
    <F> Promise<T>
    PromiseImpl.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.
    PromiseImpl.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.
    <F> Promise<T>
    ResolvedPromiseImpl.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.
    ResolvedPromiseImpl.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.
    PromiseImpl.onResolve(Runnable callback)
    Register a callback to be called when this Promise is resolved.
    FailedPromiseImpl.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.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.
    PromiseImpl.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.
    PromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery)
    Recover from a failure of this Promise with a recovery value.
    PromiseImpl.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.
    ResolvedPromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery)
    Recover from a failure of this Promise with a recovery value.
    ResolvedPromiseImpl.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.
    PromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    PromiseImpl.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.
    ResolvedPromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    ResolvedPromiseImpl.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.
    (package private) Promise<Void>
    DeferredPromiseImpl.resolveWith(CompletionStage<? extends T> with)
    Resolve this Promise with the specified CompletionStage.
    (package private) Promise<Void>
    DeferredPromiseImpl.resolveWith(Promise<? extends T> with)
    Resolve this Promise 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>
    FailedPromiseImpl.then(Success<? super T,? extends R> success, Failure failure)
    Chain a new Promise to this Promise with Success and Failure callbacks.
    <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.
    <R> Promise<R>
    PromiseImpl.then(Success<? super T,? extends R> success)
    Chain a new Promise to this Promise with a Success callback.
    <R> Promise<R>
    PromiseImpl.then(Success<? super T,? extends R> success, Failure failure)
    Chain a new Promise to this Promise with Success and Failure callbacks.
    <R> Promise<R>
    ResolvedPromiseImpl.then(Success<? super T,? extends R> success, Failure failure)
    Chain a new Promise to this Promise with Success and Failure callbacks.
    FailedPromiseImpl.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.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.
    PromiseImpl.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.
    FailedPromiseImpl.timeout(long millis)
    Time out the resolution of this Promise.
    Promise.timeout(long milliseconds)
    Time out the resolution of this Promise.
    PromiseImpl.timeout(long millis)
    Time out the resolution of this Promise.
    ResolvedPromiseImpl.timeout(long millis)
    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.
    PromiseImpl.fallbackTo(Promise<? extends T> fallback)
    Fall back to the value of the specified Promise if this Promise fails.
    PromiseImpl.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.
    ResolvedPromiseImpl.fallbackTo(Promise<? extends T> fallback)
    Fall back to the value of the specified Promise if this Promise fails.
    ResolvedPromiseImpl.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.
    (package private) Promise<Void>
    DeferredPromiseImpl.resolveWith(Promise<? extends T> with)
    Resolve this Promise with the specified Promise.
    (package private) static <R> void
    PromiseImpl.result(Promise<? extends R> promise, PromiseImpl.Result<? super R> consumer)
    Accept the result of 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>
    FailedPromiseImpl.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper)
    FlatMap 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.
    <R> Promise<R>
    PromiseImpl.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.
    PromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery)
    Recover from a failure of this Promise with a recovery value.
    PromiseImpl.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.
    ResolvedPromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery)
    Recover from a failure of this Promise with a recovery value.
    ResolvedPromiseImpl.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.
    PromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    PromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    PromiseImpl.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.
    PromiseImpl.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.
    ResolvedPromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    ResolvedPromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery)
    Recover from a failure of this Promise with a recovery Promise.
    ResolvedPromiseImpl.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.
    ResolvedPromiseImpl.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.
    Constructors in org.osgi.util.promise with parameters of type Promise
    Modifier
    Constructor
    Description
    (package private)
    Chain(Promise<? extends T> promise)
     
    (package private)
    FallbackChain(Promise<? extends T> fallback, Throwable failure)
     
    (package private)
    FallbackTo(PromiseImpl<T> promise, Promise<? extends T> fallback, Class<?> failureType)
     
    (package private)
    ResolveWith(Promise<? extends T> with, DeferredPromiseImpl<Void> promise)
    Constructor parameters in org.osgi.util.promise with type arguments of type Promise
    Modifier
    Constructor
    Description
    (package private)
    All(DeferredPromiseImpl<List<T>> chained, List<Promise<S>> promises)
     
     
    Create a new FailedPromisesException with the specified Promises.
    (package private)
    FlatMap(PromiseImpl<P> promise, org.osgi.util.function.Function<? super P,Promise<? extends T>> mapper)
     
    (package private)
    Recover(PromiseImpl<T> promise, org.osgi.util.function.Function<Promise<?>,? extends T> recovery, Class<?> failureType)
     
    (package private)
    RecoverWith(PromiseImpl<T> promise, org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery, Class<?> failureType)
     
    (package private)
    RecoverWith(PromiseImpl<T> promise, org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery, Class<?> failureType)