@Version("1.3.0")
Package org.osgi.util.promise
Promise Package Version 1.3.
Bundles wishing to use this package must list the package in the Import-Package header of the bundle's manifest.
Example import for consumers using the API in this package:
Import-Package: org.osgi.util.promise; version="[1.3,2.0)"
Example import for providers implementing the API in this package:
Import-Package: org.osgi.util.promise; version="[1.3,1.4)"
-
Interface Summary Interface Description Failure Failure callback for a Promise.Promise<T> A Promise of a value.PromiseImpl.InlineCallback Marker interface for internal callbacks which do not call user code and should be run on the current thread for an already resolved promise.PromiseImpl.Result<R> A consumer of the result of a Promise.Success<T,R> Success callback for a Promise. -
Class Summary Class Description Deferred<T> A Deferred Promise resolution.DeferredPromiseImpl<T> Deferred Promise implementation.FailedPromiseImpl<T> Failed Promise implementation.PromiseFactory Promise factory to create Deferred and Promise objects.PromiseFactory.All<T,S extends T> A callback used to resolve the specified Promise when the specified list of Promises are resolved for thePromiseFactory.all(Collection)method.PromiseFactory.DefaultExecutors Default executors for Promises.PromiseFactory.DefaultExecutors.ScheduledExecutor ScheduledThreadPoolExecutor for scheduled execution.PromiseFactory.InlineExecutor An Executor implementation which executes the task immediately on the thread calling theExecutor.executemethod.PromiseImpl<T> Abstract Promise implementation.Promises Static helper methods forPromises.ResolvedPromiseImpl<T> Resolved Promise implementation. -
Enum Summary Enum Description PromiseFactory.Option Defines the options for a Promise factory. -
Exception Summary Exception Description FailedPromisesException Promise failure exception for a collection of failed Promises.TimeoutException Timeout exception for a Promise.