com.ovh.ws.api
Interface AsyncCallback<T>


public interface AsyncCallback<T>

The primary interface a caller must implement to receive a response from a remote procedure call.


Method Summary
 void onFailure(OvhWsException caught)
          Called when an asynchronous call fails to complete normally.
 void onSuccess(T result)
          Called when an asynchronous call completes successfully.
 

Method Detail

onSuccess

void onSuccess(T result)
Called when an asynchronous call completes successfully.

Parameters:
result - the return value of the remote produced call

onFailure

void onFailure(OvhWsException caught)
Called when an asynchronous call fails to complete normally.

Parameters:
caught - failure encountered while executing a remote procedure call


Copyright © 2012 OVH. All Rights Reserved.