I am sending Sale() request from class A, and want to process the sale response which I am getting in onSaleResponse method of listener class further in same class A ( designed as per our framework).
My question is how can I wait in class A until get any response in our listener class and that is being processed? As all the methods in Clover connector and default listener is void so I can not get any return type also.
I cannot use cloverConnector.wait(60000); to wait for 60 seconds as if we get response in 30 seconds then I want to do further process from class A after 30 seconds only.
Please let me know if anything else is required from my side.