Skip to content

Commit

Permalink
Add callTimeout field to ConductorClient builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ystxn committed Nov 25, 2024
1 parent 003fda3 commit 0d6b5b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ protected ConductorClient(Builder<?> builder) {
okHttpBuilder.writeTimeout(builder.writeTimeout, TimeUnit.MILLISECONDS);
}

if (builder.callTimeout > -1) {
okHttpBuilder.callTimeout(builder.callTimeout, TimeUnit.MILLISECONDS);
}

if (builder.proxy != null) {
okHttpBuilder.proxy(builder.proxy);
}
Expand Down Expand Up @@ -442,6 +446,7 @@ public static class Builder<T extends Builder<T>> {
private long connectTimeout = -1;
private long readTimeout = -1;
private long writeTimeout = -1;
private long callTimeout = -1;
private Proxy proxy;
private ConnectionPoolConfig connectionPoolConfig;
private Supplier<ObjectMapper> objectMapperSupplier = () -> new ObjectMapperProvider().getObjectMapper();
Expand Down

0 comments on commit 0d6b5b1

Please sign in to comment.