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

datahub.client.Callback Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta2
Show newest version
package datahub.client;

import javax.annotation.Nullable;


public interface Callback {

  /**
   * Called when the client request has completed.
   * Completion does not imply success. Inspect the response object to understand if
   * this was a successfully processed request or not.
   * @param response
   */
  void onCompletion(@Nullable MetadataWriteResponse response);

  /**
   * Called when the client request has thrown an exception before completion.
   * @param exception
   */
  void onFailure(Throwable exception);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy