T
- public class Future<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
addCallback(Callback<?> callback,
java.lang.Object... args)
Callbacks to future can be set.
|
boolean |
cancel() |
protected void |
finalize()
Called by garbage collector
Finalize is overriden to manually delete C++ data
|
T |
get() |
T |
get(long timeout,
java.util.concurrent.TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isValid() |
void |
sync() |
void |
sync(long timeout,
java.util.concurrent.TimeUnit unit) |
public void sync(long timeout, java.util.concurrent.TimeUnit unit)
public void sync()
public boolean addCallback(Callback<?> callback, java.lang.Object... args)
callback
- com.aldebaran.qi.Callback implementationargs
- Argument to be forwarded to callback functions.public boolean cancel()
public T get() throws java.lang.InterruptedException, CallError
java.lang.InterruptedException
CallError
public T get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
public boolean isCancelled()
public boolean isDone()
public boolean isValid()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.