Search in sources :

Example 16 with Log

use of org.bcos.web3j.protocol.core.methods.response.Log in project web3sdk by FISCO-BCOS.

the class JsonRpc2_0Rx method ethLogObservable.

public Observable<Log> ethLogObservable(org.bcos.web3j.protocol.core.methods.request.EthFilter ethFilter, long pollingInterval) {
    return Observable.create((Subscriber<? super Log> subscriber) -> {
        LogFilter logFilter = new LogFilter(web3j, subscriber::onNext, ethFilter);
        run(logFilter, subscriber, pollingInterval);
    });
}
Also used : Subscriber(rx.Subscriber) Log(org.bcos.web3j.protocol.core.methods.response.Log) LogFilter(org.bcos.web3j.protocol.core.filters.LogFilter)

Aggregations

Log (org.bcos.web3j.protocol.core.methods.response.Log)16 EventValues (org.bcos.web3j.abi.EventValues)14 TypeReference (org.bcos.web3j.abi.TypeReference)13 Event (org.bcos.web3j.abi.datatypes.Event)13 EthFilter (org.bcos.web3j.protocol.core.methods.request.EthFilter)13 Utf8String (org.bcos.web3j.abi.datatypes.Utf8String)12 Uint256 (org.bcos.web3j.abi.datatypes.generated.Uint256)11 Address (org.bcos.web3j.abi.datatypes.Address)9 ArrayList (java.util.ArrayList)1 StaticArray (org.bcos.web3j.abi.datatypes.StaticArray)1 Bytes32 (org.bcos.web3j.abi.datatypes.generated.Bytes32)1 Int256 (org.bcos.web3j.abi.datatypes.generated.Int256)1 LogFilter (org.bcos.web3j.protocol.core.filters.LogFilter)1 EthLog (org.bcos.web3j.protocol.core.methods.response.EthLog)1 Subscriber (rx.Subscriber)1