- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ResponseCallback<T>
The interface for define asynchronous invoking callback.
If you want to ues the asynchronous
invoking, you must implement the ResponseCallback yourself.
The onResponse method is
mandatory, when the asynchronous invoking completed, this method will be called.
You should
check the AsyncResult to know whether the asynchronous invoking is successful or not, and get the
response data from AsyncResult.