I built a java web application which connects using Web3j with my smart contract deployed on Ropsten Network.
My web application provides a control panel to allow the user to send transactions to the smart contract. Sometimes the user can send more than 5 calls at the same time. (actually much more than 5 :) )
I have a java class wrapper of my smart contract to call the functions of it.
The question is: What I have to use, send() or sendAsync? How to manage() I tried to use send() and sendAync().get() and I got the same result.
TransactionReceipt receipt = myContract.callFunction1(...) ).sendAsync().get();
What I get with this code is a long wait to complete the call and get the transaction receipt.... Is there another way to do this?
I know this could involve promises but I am not familiar with them. Could someone provide some code?
Thanks in advance