All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fisco.bcos.web3j.protocol.Web3j Maven / Gradle / Ivy

There is a newer version: 2.6.6
Show newest version
package org.fisco.bcos.web3j.protocol;

import java.util.concurrent.ScheduledExecutorService;

import org.fisco.bcos.web3j.protocol.core.Ethereum;
import org.fisco.bcos.web3j.protocol.core.JsonRpc2_0Web3j;
import org.fisco.bcos.web3j.protocol.rx.Web3jRx;

/**
 * JSON-RPC Request object building factory.
 */
public interface Web3j extends Ethereum, Web3jRx {
    static Web3j build(Web3jService web3jService) {
        return new JsonRpc2_0Web3j(web3jService);
    }

    static Web3j build(
            Web3jService web3jService, long pollingInterval,
            ScheduledExecutorService scheduledExecutorService, int groupId) {
        return new JsonRpc2_0Web3j(web3jService, pollingInterval, scheduledExecutorService, groupId);
    }

    static Web3j build(Web3jService web3jService, int groupId) {
        return new JsonRpc2_0Web3j(web3jService, groupId);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy