| Package | Description |
|---|---|
| org.osgi.service.async |
Asynchronous Services Package Version 1.0.
|
| org.osgi.service.async.delegate |
Asynchronous Services Delegation Package Version 1.0.
|
| org.osgi.service.component.runtime |
Service Component Runtime Package Version 1.3.
|
| org.osgi.service.repository |
Repository Service Package Version 1.1.
|
| org.osgi.util.promise |
Promise Package Version 1.0.
|
| Modifier and Type | Method | Description |
|---|---|---|
Promise<?> |
Async.call() |
Invoke the last method call registered by a mediated object as an
asynchronous task.
|
<R> Promise<R> |
Async.call(R r) |
Invoke the last method call registered by a mediated object as an
asynchronous task.
|
Promise<java.lang.Void> |
Async.execute() |
Invoke the last method call registered by a mediated object as a
"fire-and-forget" asynchronous task.
|
| Modifier and Type | Method | Description |
|---|---|---|
Promise<?> |
AsyncDelegate.async(java.lang.reflect.Method m,
java.lang.Object[] args) |
Invoke the specified method as an asynchronous task with the specified
arguments.
|
| Modifier and Type | Method | Description |
|---|---|---|
Promise<java.lang.Void> |
ServiceComponentRuntime.disableComponent(ComponentDescriptionDTO description) |
Disables the specified component description.
|
Promise<java.lang.Void> |
ServiceComponentRuntime.enableComponent(ComponentDescriptionDTO description) |
Enables the specified component description.
|
| Modifier and Type | Method | Description |
|---|---|---|
Promise<java.util.Collection<org.osgi.resource.Resource>> |
Repository.findProviders(RequirementExpression expression) |
Find the resources that match the specified requirement expression.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T,S extends T> |
Promises.all(java.util.Collection<Promise<S>> promises) |
Create a new Promise that is a latch on the resolution of the specified
Promises.
|
static <T> Promise<java.util.List<T>> |
Promises.all(Promise<? extends T>... promises) |
Create a new Promise that is a latch on the resolution of the specified
Promises.
|
Promise<R> |
Success.call(Promise<T> resolved) |
Success callback for a Promise.
|
static <T> Promise<T> |
Promises.failed(java.lang.Throwable failure) |
Create a new Promise that has been resolved with the specified failure.
|
Promise<T> |
Promise.fallbackTo(Promise<? extends T> fallback) |
Fall back to the value of the specified Promise if this Promise fails.
|
Promise<T> |
Promise.filter(Predicate<? super T> predicate) |
Filter the value of this Promise.
|
<R> Promise<R> |
Promise.flatMap(Function<? super T,Promise<? extends R>> mapper) |
FlatMap the value of this Promise.
|
Promise<T> |
Deferred.getPromise() |
Returns the Promise associated with this Deferred.
|
<R> Promise<R> |
Promise.map(Function<? super T,? extends R> mapper) |
Map the value of this Promise.
|
Promise<T> |
Promise.onResolve(java.lang.Runnable callback) |
Register a callback to be called when this Promise is resolved.
|
Promise<T> |
Promise.recover(Function<Promise<?>,? extends T> recovery) |
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
Promise.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery) |
Recover from a failure of this Promise with a recovery Promise.
|
static <T> Promise<T> |
Promises.resolved(T value) |
Create a new Promise that has been resolved with the specified value.
|
Promise<java.lang.Void> |
Deferred.resolveWith(Promise<? extends T> with) |
Resolve the Promise associated with this Deferred with the specified
Promise.
|
<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.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Collection<Promise<?>> |
FailedPromisesException.getFailedPromises() |
Returns the collection of Promises that have been resolved with a
failure.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> Promise<java.util.List<T>> |
Promises.all(Promise<? extends T>... promises) |
Create a new Promise that is a latch on the resolution of the specified
Promises.
|
Promise<R> |
Success.call(Promise<T> resolved) |
Success callback for a Promise.
|
void |
Failure.fail(Promise<?> resolved) |
Failure callback for a Promise.
|
Promise<T> |
Promise.fallbackTo(Promise<? extends T> fallback) |
Fall back to the value of the specified Promise if this Promise fails.
|
Promise<java.lang.Void> |
Deferred.resolveWith(Promise<? extends T> with) |
Resolve the Promise associated with this Deferred with the specified
Promise.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T,S extends T> |
Promises.all(java.util.Collection<Promise<S>> promises) |
Create a new Promise that is a latch on the resolution of the specified
Promises.
|
<R> Promise<R> |
Promise.flatMap(Function<? super T,Promise<? extends R>> mapper) |
FlatMap the value of this Promise.
|
Promise<T> |
Promise.recover(Function<Promise<?>,? extends T> recovery) |
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
Promise.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery) |
Recover from a failure of this Promise with a recovery Promise.
|
Promise<T> |
Promise.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery) |
Recover from a failure of this Promise with a recovery Promise.
|
| Constructor | Description |
|---|---|
FailedPromisesException(java.util.Collection<Promise<?>> failed,
java.lang.Throwable cause) |
Create a new FailedPromisesException with the specified Promises.
|