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

com.sendgrid.APICallback Maven / Gradle / Ivy

package com.sendgrid;

/**
 * An interface describing a callback mechanism for the asynchronous, rate limit aware API
 * connection.
 */
public interface APICallback {

  /**
   * Callback method in case of an error.
   *
   * @param ex the error that was thrown.
   */
  void error(Exception ex);

  /**
   * Callback method in case of a valid response.
   *
   * @param response the valid response.
   */
  void response(Response response);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy