public abstract class Filter<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Callback<T> |
callback |
protected java.util.concurrent.ScheduledFuture<?> |
schedule |
protected Web3j |
web3j |
Constructor and Description |
---|
Filter(Web3j web3j,
Callback<T> callback) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected abstract java.util.Optional<Request<?,EthLog>> |
getFilterLogs(java.math.BigInteger filterId)
Retrieves historic filters for the filter with the given id.
|
protected abstract void |
process(java.util.List<EthLog.LogResult> logResults) |
void |
run(java.util.concurrent.ScheduledExecutorService scheduledExecutorService,
long blockTime) |
protected abstract EthFilter |
sendRequest() |
protected EthUninstallFilter |
uninstallFilter(java.math.BigInteger filterId) |
protected final Web3j web3j
protected java.util.concurrent.ScheduledFuture<?> schedule
public void run(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, long blockTime)
protected abstract EthFilter sendRequest() throws java.io.IOException
java.io.IOException
protected abstract void process(java.util.List<EthLog.LogResult> logResults)
public void cancel()
protected EthUninstallFilter uninstallFilter(java.math.BigInteger filterId) throws java.io.IOException
java.io.IOException
protected abstract java.util.Optional<Request<?,EthLog>> getFilterLogs(java.math.BigInteger filterId)
filterId
- Id of the filter for which the historic log should be retrieved