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 and 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 and 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 and 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 and 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 | Class and Description |
---|---|
(package private) class |
PromiseImpl<T>
Promise implementation.
|
Modifier and Type | Field and Description |
---|---|
private Promise<? extends T> |
PromiseImpl.FallbackTo.fallback |
private Promise<? extends R> |
PromiseImpl.Chain.promise |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Promise<?>> |
FailedPromisesException.failed |
private Function<? super T,Promise<? extends R>> |
PromiseImpl.FlatMap.mapper |
private java.util.List<Promise<? extends T>> |
Promises.All.promises |
private Function<Promise<?>,? extends T> |
PromiseImpl.Recover.recovery |
private Function<Promise<?>,Promise<? extends T>> |
PromiseImpl.RecoverWith.recovery |
private Function<Promise<?>,Promise<? extends T>> |
PromiseImpl.RecoverWith.recovery |
Modifier and Type | Method and 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<java.lang.Void> |
PromiseImpl.ResolveWith.call(Promise<T> with) |
Promise<T> |
PromiseImpl.Filter.call(Promise<T> resolved) |
Promise<R> |
PromiseImpl.Map.call(Promise<T> resolved) |
Promise<R> |
PromiseImpl.FlatMap.call(Promise<T> resolved) |
Promise<java.lang.Void> |
PromiseImpl.Recover.call(Promise<T> resolved) |
Promise<java.lang.Void> |
PromiseImpl.RecoverWith.call(Promise<T> resolved) |
Promise<java.lang.Void> |
PromiseImpl.FallbackTo.call(Promise<T> resolved) |
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> |
PromiseImpl.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.
|
Promise<T> |
PromiseImpl.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.
|
<R> Promise<R> |
PromiseImpl.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.
|
<R> Promise<R> |
PromiseImpl.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> |
PromiseImpl.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> |
PromiseImpl.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> |
PromiseImpl.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.
|
(package private) Promise<java.lang.Void> |
PromiseImpl.resolveWith(Promise<? extends T> with)
Resolve this Promise 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> |
PromiseImpl.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.
|
<R> Promise<R> |
PromiseImpl.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 |
---|---|
java.util.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<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<java.lang.Void> |
PromiseImpl.ResolveWith.call(Promise<T> with) |
Promise<T> |
PromiseImpl.Filter.call(Promise<T> resolved) |
Promise<R> |
PromiseImpl.Map.call(Promise<T> resolved) |
Promise<R> |
PromiseImpl.FlatMap.call(Promise<T> resolved) |
Promise<java.lang.Void> |
PromiseImpl.Recover.call(Promise<T> resolved) |
Promise<java.lang.Void> |
PromiseImpl.RecoverWith.call(Promise<T> resolved) |
Promise<java.lang.Void> |
PromiseImpl.FallbackTo.call(Promise<T> resolved) |
Promise<R> |
Success.call(Promise<T> resolved)
Success callback for a Promise.
|
void |
Failure.fail(Promise<?> resolved)
Failure callback for a Promise.
|
void |
PromiseImpl.ResolveWith.fail(Promise<?> with) |
void |
PromiseImpl.Recover.fail(Promise<?> resolved) |
void |
PromiseImpl.RecoverWith.fail(Promise<?> resolved) |
void |
PromiseImpl.FallbackTo.fail(Promise<?> resolved) |
Promise<T> |
Promise.fallbackTo(Promise<? extends T> fallback)
Fall back to the value of the specified Promise if this Promise fails.
|
Promise<T> |
PromiseImpl.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.
|
(package private) Promise<java.lang.Void> |
PromiseImpl.resolveWith(Promise<? extends T> with)
Resolve this Promise with the specified Promise.
|
Modifier and Type | Method and 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.
|
<R> Promise<R> |
PromiseImpl.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> |
PromiseImpl.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.
|
Promise<T> |
PromiseImpl.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.
|
Promise<T> |
PromiseImpl.recoverWith(Function<Promise<?>,Promise<? extends T>> recovery)
Recover from a failure of this Promise with a recovery Promise.
|
Constructor and Description |
---|
Chain(PromiseImpl<R> chained,
Promise<? extends R> promise) |
Chain(PromiseImpl<R> chained,
Promise<? extends R> promise,
java.lang.Throwable failure) |
FallbackTo(PromiseImpl<T> chained,
Promise<? extends T> fallback) |
Constructor and Description |
---|
All(PromiseImpl<java.util.List<T>> chained,
java.util.List<Promise<? extends T>> promises) |
FailedPromisesException(java.util.Collection<Promise<?>> failed,
java.lang.Throwable cause)
Create a new FailedPromisesException with the specified Promises.
|
FlatMap(Function<? super T,Promise<? extends R>> mapper) |
Recover(PromiseImpl<T> chained,
Function<Promise<?>,? extends T> recovery) |
RecoverWith(PromiseImpl<T> chained,
Function<Promise<?>,Promise<? extends T>> recovery) |
RecoverWith(PromiseImpl<T> chained,
Function<Promise<?>,Promise<? extends T>> recovery) |