@ProviderType
public interface Async
| Modifier and Type | Method and Description |
|---|---|
Promise<?> |
call()
Asynchronously run the last method call registered by a mediated object,
returning the result as a Promise.
|
<R> Promise<R> |
call(R r)
Asynchronously run the last method call registered by a mediated object,
returning the result as a Promise.
|
Promise<Void> |
execute()
Asynchronously run the last method call registered by a mediated object,
ignoring the return value.
|
<T> T |
mediate(org.osgi.framework.ServiceReference<? extends T> target,
Class<T> iface)
Create a mediated object for asynchronous calls
|
<T> T |
mediate(T target,
Class<T> iface)
Create a mediated object for asynchronous calls
|
<T> T mediate(T target,
Class<T> iface)
target - The object to mediateiface - The type that the mediated object should implement or extendIllegalArgumentException - if mediation fails<T> T mediate(org.osgi.framework.ServiceReference<? extends T> target,
Class<T> iface)
target - The service reference to mediateiface - The type that the mediated object should implement or extendIllegalArgumentException - if mediation fails<R> Promise<R> call(R r)
r - the return value of the mediated callPromise<?> call()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.