Package datahub.client
Interface Callback
-
public interface Callback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCompletion(MetadataWriteResponse response)Called when the client request has completed.voidonFailure(java.lang.Throwable exception)Called when the client request has thrown an exception before completion.
-
-
-
Method Detail
-
onCompletion
void onCompletion(@Nullable MetadataWriteResponse response)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.- Parameters:
response-
-
onFailure
void onFailure(java.lang.Throwable exception)
Called when the client request has thrown an exception before completion.- Parameters:
exception-
-
-