chemaxon.marvin.services
Interface AsyncCallback<T>

Type Parameters:
T - the type of the return value

public interface AsyncCallback<T>

Callback interface for asyncronous service calls

Since:
5.6
Author:
Istvan Rabel

Method Summary
 void onFailure(ServiceException caught)
          Called when asynchronous call is failed
 void onSuccess(T result)
          Called when asynchronous call is completed succesfully
 

Method Detail

onSuccess

void onSuccess(T result)
Called when asynchronous call is completed succesfully

Parameters:
result - the result of call

onFailure

void onFailure(ServiceException caught)
Called when asynchronous call is failed

Parameters:
caught - the failure