Skip to content

Commit 4fb1f6a

Browse files
authored
docs: [Connectivity-Apache-Client4/5] Upate Cache TTL in javadoc (#756)
Co-authored-by: Roshin Rajan Panackal <[email protected]>
1 parent ab9e50b commit 4fb1f6a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cloudplatform/connectivity-apache-httpclient4/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/DefaultHttpClientCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class DefaultHttpClientCache extends AbstractHttpClientCache
2929
private final Cache<CacheKey, HttpClient> cache;
3030

3131
/**
32-
* Caches the {@code HttpClient} for the default duration of 5 minutes.
32+
* Caches the {@code HttpClient} for the default duration of 1 hour.
3333
*/
3434
DefaultHttpClientCache()
3535
{

cloudplatform/connectivity-apache-httpclient4/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/HttpClientAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public final class HttpClientAccessor
2424
* {@code #getHttpClient(Destination)} methods.
2525
* <p>
2626
* By default, this uses the {@link DefaultHttpClientCache} implementation, which caches the {@link HttpClient} for
27-
* 5 minutes.
27+
* 1 hour.
2828
* <p>
2929
* <strong>CAUTION:</strong> This factory is accessed concurrently. Therefore, you have to make sure that you do not
3030
* introduce any concurrency issues when changing the factory. Furthermore, be aware that setting a custom factory

cloudplatform/connectivity-apache-httpclient5/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/ApacheHttpClient5Accessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public final class ApacheHttpClient5Accessor
2525
* Configures the {@code HttpClient5Cache} that is used by the {@code #getHttpClient(String)} and
2626
* {@code #getHttpClient(Destination)} methods.
2727
* <p>
28-
* By default, this uses an implementation, which caches the {@link HttpClient} for 5 minutes.
28+
* By default, this uses an implementation, which caches the {@link HttpClient} for 1 hour.
2929
* <p>
3030
* <strong>CAUTION:</strong> This factory is accessed concurrently. Therefore, you have to make sure that you do not
3131
* introduce any concurrency issues when changing the factory. Furthermore, be aware that setting a custom factory

cloudplatform/connectivity-apache-httpclient5/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/ApacheHttpClient5CacheBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ApacheHttpClient5CacheBuilder
2121
/**
2222
* Sets the duration for which {@link HttpClient} instances will be cached.
2323
* <p>
24-
* This is an <b>optional</b> parameter. By default, the cache duration is set to 5 minutes.
24+
* This is an <b>optional</b> parameter. By default, the cache duration is set to 1 hour.
2525
* </p>
2626
*
2727
* @param durationInMilliseconds
@@ -38,7 +38,7 @@ public ApacheHttpClient5CacheBuilder durationInMilliseconds( final int durationI
3838
/**
3939
* Sets the duration for which {@link HttpClient} instances will be cached.
4040
* <p>
41-
* This is an <b>optional</b> parameter. By default, the cache duration is set to 5 minutes.
41+
* This is an <b>optional</b> parameter. By default, the cache duration is set to 1 hour.
4242
* </p>
4343
*
4444
* @param duration

0 commit comments

Comments
 (0)