Class LogFilter

java.lang.Object
org.web3j.protocol.core.filters.Filter<Log>
org.web3j.protocol.core.filters.LogFilter

public class LogFilter extends Filter<Log>
Log filter handler.
  • Field Details

    • ethFilter

      protected final EthFilter ethFilter
  • Constructor Details

  • Method Details

    • sendRequest

      protected EthFilter sendRequest() throws IOException
      Specified by:
      sendRequest in class Filter<Log>
      Throws:
      IOException
    • process

      protected void process(List<EthLog.LogResult> logResults)
      Specified by:
      process in class Filter<Log>
    • getFilterLogs

      protected Optional<Request<?,EthLog>> getFilterLogs(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 class Filter<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