I am using the high level rest client and calling:
client.indexAsync(request, new ActionListener() {
public void onResponse(IndexResponse indexResponse) {
}
public void onFailure(Exception e) {
}
}
I want to convert the response to RxJava observable and give it back to the controller. But indexAsync does not have a return. Could someone please help me out?