All Downloads are FREE. Search and download functionalities are using the official Maven repository.

exchange.apexpro.connector.ResponseCallback Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package exchange.apexpro.connector;

/**
 * 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. */ @FunctionalInterface public interface ResponseCallback { /** * Be called when the request successful. * * @param response The {@link AsyncResult} of the asynchronous invoking. */ void onResponse(T response); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy