datahub.client.Callback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-client Show documentation
Show all versions of datahub-client Show documentation
DataHub Java client for metadata integration
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);
}