public interface Callback<T>
Modifier and Type | Method and Description |
---|---|
void |
onComplete(Future<T> future,
java.lang.Object[] args)
Called when future completes.
|
void |
onFailure(Future<T> future,
java.lang.Object[] args)
Called when future ends with error.
|
void |
onSuccess(Future<T> future,
java.lang.Object[] args)
Called when future completes successfully.
|
void onSuccess(Future<T> future, java.lang.Object[] args)
future
- Successful Futureargs
- Arguments given to Future.addCallback() method.void onFailure(Future<T> future, java.lang.Object[] args)
future
- Future with errorargs
- Arguments given to Future.addCallback() method.Aldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.