Package chemaxon.marvin.services
Interface AsyncCallback<T>
- Type Parameters:
T- the type of the return value
Callback interface for asynchronous service calls
- Since:
- 5.6
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(ServiceException caught) Called when asynchronous call is failedvoidCalled when asynchronous call is completed successfully
-
Method Details
-
onSuccess
Called when asynchronous call is completed successfully- Parameters:
result- the result of call
-
onFailure
Called when asynchronous call is failed- Parameters:
caught- the failure
-