Package chemaxon.marvin.services
Interface AsyncCallback<T>
-
- Type Parameters:
T
- the type of the return value
@PublicAPI public interface AsyncCallback<T>
Callback interface for asynchronous service calls- Since:
- 5.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onFailure(ServiceException caught)
Called when asynchronous call is failedvoid
onSuccess(T result)
Called when asynchronous call is completed successfully
-
-
-
Method Detail
-
onSuccess
void onSuccess(T result)
Called when asynchronous call is completed successfully- Parameters:
result
- the result of call
-
onFailure
void onFailure(ServiceException caught)
Called when asynchronous call is failed- Parameters:
caught
- the failure
-
-