Package org.web3j.protocol.core.filters
Class PendingTransactionFilter
- java.lang.Object
-
- org.web3j.protocol.core.filters.Filter<java.lang.String>
-
- org.web3j.protocol.core.filters.PendingTransactionFilter
-
public class PendingTransactionFilter extends Filter<java.lang.String>
Handler for working with transaction filter requests.
-
-
Constructor Summary
Constructors Constructor Description PendingTransactionFilter(Web3j web3j, Callback<java.lang.String> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<Request<?,EthLog>>
getFilterLogs(java.math.BigInteger filterId)
Since the pending transaction filter does not support historic filters, the filterId is ignored and an empty optional is returnedprotected void
process(java.util.List<EthLog.LogResult> logResults)
protected EthFilter
sendRequest()
-
Methods inherited from class org.web3j.protocol.core.filters.Filter
cancel, run, uninstallFilter
-
-
-
-
Method Detail
-
sendRequest
protected EthFilter sendRequest() throws java.io.IOException
- Specified by:
sendRequest
in classFilter<java.lang.String>
- Throws:
java.io.IOException
-
process
protected void process(java.util.List<EthLog.LogResult> logResults)
-
getFilterLogs
protected java.util.Optional<Request<?,EthLog>> getFilterLogs(java.math.BigInteger filterId)
Since the pending transaction filter does not support historic filters, the filterId is ignored and an empty optional is returned- Specified by:
getFilterLogs
in classFilter<java.lang.String>
- Parameters:
filterId
- Id of the filter for which the historic log should be retrieved- Returns:
- Optional.empty()
-
-