Skip to content

Commit

Permalink
add setters for executors
Browse files Browse the repository at this point in the history
  • Loading branch information
bohhyang committed Dec 22, 2023
1 parent f5a0adb commit 328d1b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions d2/src/main/java/com/linkedin/d2/balancer/D2ClientBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,18 @@ public D2ClientBuilder setWarmUpConcurrentRequests(int warmUpConcurrentRequests)
return this;
}

public D2ClientBuilder setStartUpExecutorService(ScheduledExecutorService executorService)
{
_config.startUpExecutorService = executorService;
return this;
}

public D2ClientBuilder setIndisStartUpExecutorService(ScheduledExecutorService executorService)
{
_config.indisStartUpExecutorService = executorService;
return this;
}

public D2ClientBuilder setDownstreamServicesFetcher(DownstreamServicesFetcher downstreamServicesFetcher)
{
_config.downstreamServicesFetcher = downstreamServicesFetcher;
Expand Down

0 comments on commit 328d1b4

Please sign in to comment.