public interface ResultHandler
The handleResult(oracle.oud.responses.Result)
method is invoked when the operation completes successfully. The handleErrorResult(oracle.oud.responses.Result)
method is invoked if the operation fails.
Implementations of these methods should complete in a timely manner so as to avoid keeping the invoking thread from dispatching to other completion handlers.
Modifier and Type | Method and Description |
---|---|
void |
handleErrorResult(Result error)
Invoked when the operation has failed.
|
void |
handleResult(Result result)
Invoked when the operation has completed successfully.
|
void handleErrorResult(Result error)
error
- The error result exception indicating why the operation has failed.void handleResult(Result result)
result
- The result of the operation.