I'm having trouble understanding the flow of the Deferred class.
For example, this API is used in the AsyncKudu. How can I do this method?
public void foo(){
//verify that the table exists;
...
//if exists, open table;
...
//write on the table;
...
}
More specifically, the AsyncKuduClient has this method to see if a table exists:
Deferred<Boolean> aux = kuduClient.tableExists(tableName);
What can I do after this?
And after that, how can I call this method asynchronously?
Thank you.
I'm having trouble understanding the flow of the Deferred class.
For example, this API is used in the AsyncKudu. How can I do this method?
More specifically, the AsyncKuduClient has this method to see if a table exists:
Deferred<Boolean> aux = kuduClient.tableExists(tableName);What can I do after this?
And after that, how can I call this method asynchronously?
Thank you.