Skip to content

Commit

Permalink
add extra parameter(retry,interval) to service build method (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana authored Sep 23, 2020
1 parent 0735a91 commit 0ea27c2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/conflux/web3j/Cfx.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,21 @@ static Cfx create(String url) {
return new Web3j(new HttpService(url));
}

static Cfx create(Web3jService service) {
return new Web3j(service);
}

static Cfx create(String url, int retry) {
return new Web3j(new HttpService(url), retry, 0);
}

static Cfx create(String url, int retry, long intervalMillis) {
return new Web3j(new HttpService(url), retry, intervalMillis);
}

static Cfx create(Web3jService service) {
return new Web3j(service);
}

static Cfx create(Web3jService service, int retry, long intervalMillis) {
return new Web3j(service, retry, intervalMillis);
}

Request<BigInteger, BigIntResponse> getGasPrice();

Expand Down

0 comments on commit 0ea27c2

Please sign in to comment.