24. public interface AddService extends RemoteService {
int add(int a, int b);
}
Google Plugin
public interface AddServiceAsync {
void add(int a, int b, AsyncCallback<Integer> callback);
}
25. RPC
service.add(a, b, new AsyncCallback<Integer>() {
public void onSuccess(Integer result) {
//
}
public void onFailure(Throwable caught) {
//
}
});