Interface AnnotationReadOperation
public interface AnnotationReadOperation
A sequence of instructions that can be chained together to read annotations, building up to a final operation that
can be executed with
execute().-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes this read operation.onError(Consumer<AnnotationReadErrorResult> errorHandler) Sets the function called when the entire read operation fails.onSuccess(Consumer<AnnotationReadResponse> successHandler) Sets the function called when the read operation completes successfully.
-
Method Details
-
onSuccess
Sets the function called when the read operation completes successfully.- Parameters:
successHandler- function to call after successful execution- Returns:
- this AnnotationReadOperation
-
onError
Sets the function called when the entire read operation fails.- Parameters:
errorHandler- function to call after failed execution- Returns:
- this AnnotationReadOperation
-
execute
void execute()Executes this read operation.
-