Skip to content

Commit

Permalink
Remove unused deprecated configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi authored and electrum committed May 6, 2024
1 parent 60ee621 commit 17f59a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"http-client.authentication.krb5.principal",
"http-client.authentication.krb5.remote-service-name",
"http-client.authentication.krb5.service-principal-pattern",
"http-client.keep-alive-interval",
"http-client.max-connections",
"http.authentication.krb5.config",
"http.authentication.krb5.credential-cache",
Expand All @@ -66,7 +67,6 @@ public class HttpClientConfig
private Duration connectTimeout = new Duration(5, SECONDS);
private Duration requestTimeout = new Duration(5, MINUTES);
private Duration idleTimeout = new Duration(1, MINUTES);
private Duration keepAliveInterval;
private int maxConnectionsPerServer = 20;
private int maxRequestsQueuedPerDestination = 1024;
private DataSize maxContentLength = DataSize.of(16, MEGABYTE);
Expand Down Expand Up @@ -184,20 +184,6 @@ public HttpClientConfig setIdleTimeout(Duration idleTimeout)
return this;
}

@Deprecated
public Duration getKeepAliveInterval()
{
return keepAliveInterval;
}

@Deprecated
@Config("http-client.keep-alive-interval")
public HttpClientConfig setKeepAliveInterval(Duration keepAliveInterval)
{
this.keepAliveInterval = keepAliveInterval;
return this;
}

@Min(1)
public int getMaxConnectionsPerServer()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

@SuppressWarnings("deprecation")
public class TestHttpClientConfig
{
@Test
Expand All @@ -53,7 +52,6 @@ public void testDefaults()
.setConnectTimeout(new Duration(5, SECONDS))
.setRequestTimeout(new Duration(5, MINUTES))
.setIdleTimeout(new Duration(1, MINUTES))
.setKeepAliveInterval(null)
.setMaxConnectionsPerServer(20)
.setMaxRequestsQueuedPerDestination(1024)
.setMaxContentLength(DataSize.of(16, MEGABYTE))
Expand Down Expand Up @@ -100,7 +98,6 @@ public void testExplicitPropertyMappings()
.put("http-client.connect-timeout", "4s")
.put("http-client.request-timeout", "15s")
.put("http-client.idle-timeout", "5s")
.put("http-client.keep-alive-interval", "6s")
.put("http-client.max-connections-per-server", "3")
.put("http-client.max-requests-queued-per-destination", "10")
.put("http-client.max-content-length", "1MB")
Expand Down Expand Up @@ -144,7 +141,6 @@ public void testExplicitPropertyMappings()
.setConnectTimeout(new Duration(4, SECONDS))
.setRequestTimeout(new Duration(15, SECONDS))
.setIdleTimeout(new Duration(5, SECONDS))
.setKeepAliveInterval(new Duration(6, SECONDS))
.setMaxConnectionsPerServer(3)
.setMaxRequestsQueuedPerDestination(10)
.setMaxContentLength(DataSize.of(1, MEGABYTE))
Expand Down

0 comments on commit 17f59a6

Please sign in to comment.