Package org.web3j.tx.response
Class PollingTransactionReceiptProcessor
- java.lang.Object
-
- org.web3j.tx.response.TransactionReceiptProcessor
-
- org.web3j.tx.response.PollingTransactionReceiptProcessor
-
public class PollingTransactionReceiptProcessor extends TransactionReceiptProcessor
With each provided transaction hash, poll until we obtain a transaction receipt.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
attempts
protected long
sleepDuration
-
Constructor Summary
Constructors Constructor Description PollingTransactionReceiptProcessor(Web3j web3j, long sleepDuration, int attempts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionReceipt
waitForTransactionReceipt(java.lang.String transactionHash)
-
-
-
Constructor Detail
-
PollingTransactionReceiptProcessor
public PollingTransactionReceiptProcessor(Web3j web3j, long sleepDuration, int attempts)
-
-
Method Detail
-
waitForTransactionReceipt
public TransactionReceipt waitForTransactionReceipt(java.lang.String transactionHash) throws java.io.IOException, TransactionException
- Specified by:
waitForTransactionReceipt
in classTransactionReceiptProcessor
- Throws:
java.io.IOException
TransactionException
-
-