Package | Description |
---|---|
org.osgi.service.component.runtime |
Service Component Runtime Package Version 1.3.
|
org.osgi.util.promise |
Promise Package Version 1.0.
|
Modifier and Type | Method and Description |
---|---|
Promise<Void> |
ServiceComponentRuntime.disableComponent(ComponentDescriptionDTO description)
Disables the specified component description.
|
Promise<Void> |
ServiceComponentRuntime.enableComponent(ComponentDescriptionDTO description)
Enables the specified component description.
|
Modifier and Type | Method and Description |
---|---|
static <T,S extends T> |
Promises.all(Collection<Promise<S>> promises)
Create 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)
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(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(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<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 and Description |
---|---|
Collection<Promise<?>> |
FailedPromisesException.getFailedPromises()
Returns the collection of Promises that have been resolved with a
failure.
|
Modifier and Type | Method and Description |
---|---|
static <T> Promise<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<Void> |
Deferred.resolveWith(Promise<? extends T> with)
Resolve the Promise associated with this Deferred with the specified
Promise.
|
Modifier and Type | Method and Description |
---|---|
static <T,S extends T> |
Promises.all(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 and Description |
---|
FailedPromisesException(Collection<Promise<?>> failed,
Throwable cause)
Create a new FailedPromisesException with the specified Promises.
|
Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0