Package org.web3j.protocol.core.filters
Class LogFilter
- java.lang.Object
-
- org.web3j.protocol.core.filters.Filter<Log>
-
- org.web3j.protocol.core.filters.LogFilter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<Request<?,EthLog>>
getFilterLogs(java.math.BigInteger filterId)
Retrieves historic filters for the filter with the given id.protected void
process(java.util.List<EthLog.LogResult> logResults)
protected EthFilter
sendRequest()
-
Methods inherited from class org.web3j.protocol.core.filters.Filter
cancel, run, uninstallFilter
-
-
-
-
Field Detail
-
ethFilter
protected final EthFilter ethFilter
-
-
Method Detail
-
sendRequest
protected EthFilter sendRequest() throws java.io.IOException
- Specified by:
sendRequest
in classFilter<Log>
- 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)
Description copied from class:Filter
Retrieves historic filters for the filter with the given id. Getting historic logs is not supported by all filters. If not the method should return an empty EthLog object- Specified by:
getFilterLogs
in classFilter<Log>
- Parameters:
filterId
- Id of the filter for which the historic log should be retrieved- Returns:
- Historic logs, or an empty optional if the filter cannot retrieve historic logs
-
-