Skip navigation links
A C D E F G I M O P R S T V 

A

all(Collection<Promise<S>>) - Method in class org.osgi.util.promise.PromiseFactory
Returns a new Promise that is a latch on the resolution of the specified Promises.
all(Collection<Promise<S>>) - Static method in class org.osgi.util.promise.Promises
Returns a new Promise that is a latch on the resolution of the specified Promises.
all(Promise<? extends T>...) - Static method in class org.osgi.util.promise.Promises
Returns a new Promise that is a latch on the resolution of the specified Promises.

C

call(Promise<T>) - Method in interface org.osgi.util.promise.Success
Success callback for a Promise.

D

Deferred<T> - Class in org.osgi.util.promise
A Deferred Promise resolution.
Deferred() - Constructor for class org.osgi.util.promise.Deferred
Create a new Deferred.
deferred() - Method in class org.osgi.util.promise.PromiseFactory
Create a new Deferred with the callback executor and scheduled executor of this PromiseFactory object.
delay(long) - Method in interface org.osgi.util.promise.Promise
Delay after the resolution of this Promise.

E

executor() - Method in class org.osgi.util.promise.PromiseFactory
Returns the executor to use for callbacks.

F

fail(Throwable) - Method in class org.osgi.util.promise.Deferred
Fail the Promise associated with this Deferred.
fail(Promise<?>) - Method in interface org.osgi.util.promise.Failure
Failure callback for a Promise.
failed(Throwable) - Method in class org.osgi.util.promise.PromiseFactory
Returns a new Promise that has been resolved with the specified failure.
failed(Throwable) - Static method in class org.osgi.util.promise.Promises
Returns a new Promise that has been resolved with the specified failure.
FailedPromisesException - Exception in org.osgi.util.promise
Promise failure exception for a collection of failed Promises.
FailedPromisesException(Collection<Promise<?>>, Throwable) - Constructor for exception org.osgi.util.promise.FailedPromisesException
Create a new FailedPromisesException with the specified Promises.
Failure - Interface in org.osgi.util.promise
Failure callback for a Promise.
fallbackTo(Promise<? extends T>) - Method in interface org.osgi.util.promise.Promise
Fall back to the value of the specified Promise if this Promise fails.
filter(<any>) - Method in interface org.osgi.util.promise.Promise
Filter the value of this Promise.
flatMap(<any>) - Method in interface org.osgi.util.promise.Promise
FlatMap the value of this Promise.

G

getFailedPromises() - Method in exception org.osgi.util.promise.FailedPromisesException
Returns the collection of Promises that have been resolved with a failure.
getFailure() - Method in interface org.osgi.util.promise.Promise
Returns the failure of this Promise.
getPromise() - Method in class org.osgi.util.promise.Deferred
Returns the Promise associated with this Deferred.
getValue() - Method in interface org.osgi.util.promise.Promise
Returns the value of this Promise.

I

inlineExecutor() - Static method in class org.osgi.util.promise.PromiseFactory
Returns an Executor implementation that executes tasks immediately on the thread calling the Executor.execute method.
isDone() - Method in interface org.osgi.util.promise.Promise
Returns whether this Promise has been resolved.

M

map(<any>) - Method in interface org.osgi.util.promise.Promise
Map the value of this Promise.

O

onFailure(<any>) - Method in interface org.osgi.util.promise.Promise
Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.
onResolve(Runnable) - Method in interface org.osgi.util.promise.Promise
Register a callback to be called when this Promise is resolved.
onSuccess(<any>) - Method in interface org.osgi.util.promise.Promise
Register a callback to be called with the result of this Promise when this Promise is resolved successfully.
org.osgi.util.promise - package org.osgi.util.promise
Promise Package Version 1.2.

P

Promise<T> - Interface in org.osgi.util.promise
A Promise of a value.
PromiseFactory - Class in org.osgi.util.promise
Promise factory to create Deferred and Promise objects.
PromiseFactory(Executor) - Constructor for class org.osgi.util.promise.PromiseFactory
Create a new PromiseFactory with the specified callback executor.
PromiseFactory(Executor, ScheduledExecutorService) - Constructor for class org.osgi.util.promise.PromiseFactory
Create a new PromiseFactory with the specified callback executor and specified scheduled executor.
PromiseFactory(Executor, ScheduledExecutorService, PromiseFactory.Option...) - Constructor for class org.osgi.util.promise.PromiseFactory
Create a new PromiseFactory with the specified callback executor, specified scheduled executor, and specified options.
PromiseFactory.Option - Enum in org.osgi.util.promise
Defines the options for a Promise factory.
Promises - Class in org.osgi.util.promise
Static helper methods for Promises.

R

recover(<any>) - Method in interface org.osgi.util.promise.Promise
Recover from a failure of this Promise with a recovery value.
recoverWith(<any>) - Method in interface org.osgi.util.promise.Promise
Recover from a failure of this Promise with a recovery Promise.
resolve(T) - Method in class org.osgi.util.promise.Deferred
Successfully resolve the Promise associated with this Deferred.
resolved(T) - Method in class org.osgi.util.promise.PromiseFactory
Returns a new Promise that has been resolved with the specified value.
resolved(T) - Static method in class org.osgi.util.promise.Promises
Returns a new Promise that has been resolved with the specified value.
resolvedWith(CompletionStage<? extends T>) - Method in class org.osgi.util.promise.PromiseFactory
Returns a new Promise that will be resolved with the result of the specified CompletionStage.
resolvedWith(Promise<? extends T>) - Method in class org.osgi.util.promise.PromiseFactory
Returns a new Promise that will be resolved with the specified Promise.
resolveWith(Promise<? extends T>) - Method in class org.osgi.util.promise.Deferred
Resolve the Promise associated with this Deferred with the specified Promise.
resolveWith(CompletionStage<? extends T>) - Method in class org.osgi.util.promise.Deferred
Resolve the Promise associated with this Deferred with the specified CompletionStage.

S

scheduledExecutor() - Method in class org.osgi.util.promise.PromiseFactory
Returns the scheduled executor to use for scheduled operations.
submit(Callable<? extends T>) - Method in class org.osgi.util.promise.PromiseFactory
Returns a new Promise that will hold the result of the specified task.
Success<T,R> - Interface in org.osgi.util.promise
Success callback for a Promise.

T

then(Success<? super T, ? extends R>, Failure) - Method in interface org.osgi.util.promise.Promise
Chain a new Promise to this Promise with Success and Failure callbacks.
then(Success<? super T, ? extends R>) - Method in interface org.osgi.util.promise.Promise
Chain a new Promise to this Promise with a Success callback.
thenAccept(<any>) - Method in interface org.osgi.util.promise.Promise
Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.
timeout(long) - Method in interface org.osgi.util.promise.Promise
Time out the resolution of this Promise.
TimeoutException - Exception in org.osgi.util.promise
Timeout exception for a Promise.
TimeoutException() - Constructor for exception org.osgi.util.promise.TimeoutException
Create a new TimeoutException.
toCompletionStage() - Method in interface org.osgi.util.promise.Promise
Returns a new CompletionStage that will be resolved with the result of this Promise.
toPromise() - Method in class org.osgi.util.promise.PromiseFactory
Returns a Collector that accumulates the results of the input Promises into a new PromiseFactory.all(Collection) Promise.
toString() - Method in class org.osgi.util.promise.Deferred
Returns a string representation of the associated Promise.

V

valueOf(String) - Static method in enum org.osgi.util.promise.PromiseFactory.Option
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.osgi.util.promise.PromiseFactory.Option
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G I M O P R S T V 
Skip navigation links