Package | Description |
---|---|
com.aldebaran.qi |
Modifier and Type | Method and Description |
---|---|
<R> Future<R> |
Future.andThenApply(Function<T,R> function)
Launch a task when the task link when this future succeed only
|
<R> Future<R> |
Future.andThenCompose(Function<T,Future<R>> function)
Launch a task when the task link when this future succeed only.
Instead of return a Future |
Future<Void> |
Future.andThenConsume(Consumer<T> consumer)
Launch a task when the task link when this future succeed only
|
<T> Future<T> |
AnyObject.call(Class<T> targetType,
String method,
Object... args) |
<T> Future<T> |
AnyObject.call(QiSerializer serializer,
Class<T> targetType,
String method,
Object... args) |
<T> Future<T> |
AnyObject.call(QiSerializer serializer,
Type targetType,
String method,
Object... args)
Convert structs in
args to tuples if necessary, then call
method asynchronously. |
<T> Future<T> |
AnyObject.call(String method,
Object... args)
Perform asynchronous call and return Future return value
|
<T> Future<T> |
AnyObject.call(Type targetType,
String method,
Object... args) |
static <T> Future<T> |
Future.cancelled() |
Future<Void> |
Session.close()
Close connection to Service Directory
|
Future<Void> |
Session.connect(String serviceDirectoryAddress)
Try to connect to given address.
|
Future<Void> |
QiSignalConnection.disconnect() |
static <T> Future<T> |
Future.fromError(String errorMessage) |
Future<T> |
Promise.getFuture() |
Future<Long> |
QiSignalConnection.getFuture() |
<T> Future<T> |
AnyObject.getProperty(Class<T> targetType,
String property) |
<T> Future<T> |
AnyObject.getProperty(QiSerializer serializer,
Class<T> targetType,
String property) |
<T> Future<T> |
AnyObject.getProperty(QiSerializer serializer,
Type targetType,
String property)
Retrieve the value of
property asynchronously. |
<T> Future<T> |
AnyObject.getProperty(Type targetType,
String property) |
Future<T> |
Property.getValue()
Current property value.
|
Future<T> |
Property.getValue(QiSerializer qiSerializer)
Current property value.
|
static <T> Future<T> |
Future.of(T value) |
<T> Future<T> |
AnyObject.property(String property) |
Future<AnyObject> |
Session.service(String name)
Ask for remote service to Service Directory.
|
Future<Void> |
AnyObject.setProperty(QiSerializer serializer,
String property,
Object o) |
Future<Void> |
AnyObject.setProperty(String property,
Object o) |
Future<Void> |
Property.setValue(QiSerializer qiSerializer,
T value)
Change property value
|
Future<Void> |
Property.setValue(T value)
Change property value
Here it used the default serializer, so it suppose that the property type
is managed by it.
|
<R> Future<R> |
Future.thenApply(Function<Future<T>,R> function)
Launch a task when the task link when this future finished (succeed,
error or cancelled)
|
<R> Future<R> |
Future.thenCompose(Function<Future<T>,Future<R>> function)
Launch a task when the task link when this future finished (succeed,
error or cancelled).
Instead of return a Future |
Future<Void> |
Future.thenConsume(Consumer<Future<T>> consumer)
Launch a task when the task link when this future finished (succeed,
error or cancelled)
|
Future<Void> |
Session.unregisterService(int idx)
Unregister service from Service Directory
|
static Future<Void> |
Future.waitAll(Future<?>... futures)
Wait for all
futures to complete. |
Future<T> |
Future.waitFor(Future<?>... futures)
Return a version of
this future that waits until futures
to finish. |
Future<Void> |
Session.waitForService(String serviceName)
Create future for wait a service is ready to use.
|
Modifier and Type | Method and Description |
---|---|
void |
Promise.connectFromFuture(Future<T> future) |
void |
Future.Callback.onFinished(Future<T> future) |
static Future<Void> |
Future.waitAll(Future<?>... futures)
Wait for all
futures to complete. |
Future<T> |
Future.waitFor(Future<?>... futures)
Return a version of
this future that waits until futures
to finish. |
Modifier and Type | Method and Description |
---|---|
<R> Future<R> |
Future.andThenCompose(Function<T,Future<R>> function)
Launch a task when the task link when this future succeed only.
Instead of return a Future |
<R> Future<R> |
Future.thenApply(Function<Future<T>,R> function)
Launch a task when the task link when this future finished (succeed,
error or cancelled)
|
<R> Future<R> |
Future.thenCompose(Function<Future<T>,Future<R>> function)
Launch a task when the task link when this future finished (succeed,
error or cancelled).
Instead of return a Future |
<R> Future<R> |
Future.thenCompose(Function<Future<T>,Future<R>> function)
Launch a task when the task link when this future finished (succeed,
error or cancelled).
Instead of return a Future |
Future<Void> |
Future.thenConsume(Consumer<Future<T>> consumer)
Launch a task when the task link when this future finished (succeed,
error or cancelled)
|
Copyright © 2019. All rights reserved.