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

com.sendgrid.APICallback Maven / Gradle / Ivy

Go to download

This Java module allows you to quickly and easily send emails through Twilio SendGrid using Java.

There is a newer version: 5.0.0-rc.1
Show newest version
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