Class EthBlockListener
java.lang.Object
app.keyconnect.chainbase.indexers.listeners.EthBlockListener
- All Implemented Interfaces:
java.lang.Runnable
public class EthBlockListener
extends java.lang.Object
implements java.lang.Runnable
-
Constructor Summary
Constructors Constructor Description EthBlockListener(java.lang.String httpAddress, java.util.function.Consumer<org.web3j.protocol.core.methods.response.EthBlock.Block> blockConsumer, java.math.BigInteger lastBlock) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EthBlockListener
public EthBlockListener(java.lang.String httpAddress, java.util.function.Consumer<org.web3j.protocol.core.methods.response.EthBlock.Block> blockConsumer, java.math.BigInteger lastBlock)
-
-
Method Details
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable
-
stop
public void stop()
-