Top Description Interfaces Classes
module org.osgi.util.promise

Package org.osgi.util.promise

Annotations
@Version:1.3.0
Imports
org.osgi.annotation.versioning.Version

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)"

Author
$Id: 94b3f3462ce3e665104fa5ed9c7e76cb3d64673e $

Interface Summary

Modifier and TypeInterface and Description
public interface
Failure

Failure callback for a Promise.

public interface
Promise<
The value type associated with this Promise.
T
>

A Promise of a value.

public interface
Success<
The value type of the resolved Promise passed as input to this callback.
T
,
The value type of the returned Promise from this callback.
R
>

Success callback for a Promise.

Class Summary

Modifier and TypeClass and Description
public class
Deferred<
The value type associated with the created Promise.
T
>

A Deferred Promise resolution.

pack-priv class
DeferredPromiseImpl<
The result type associated with the Promise.
T
>

Deferred Promise implementation.

pack-priv class
FailedPromiseImpl<
The result type associated with the Promise.
T
>

Failed Promise implementation.

public class
FailedPromisesException

Promise failure exception for a collection of failed Promises.

public class
PromiseFactory

Promise factory to create Deferred and Promise objects.

pack-priv abstract class
PromiseImpl<
The result type associated with the Promise.
T
>

Abstract Promise implementation.

public class
Promises

Static helper methods for Promises.

pack-priv class
ResolvedPromiseImpl<
The result type associated with the Promise.
T
>

Resolved Promise implementation.

public class
TimeoutException

Timeout exception for a Promise.