You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cloudplatform/connectivity-apache-httpclient5/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/ConnectionPoolManagerProviders.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,19 @@ public ConnectionPoolManagerProvider byDestinationName()
237
237
returnby(dest -> dest != null ? dest.get(DestinationProperty.NAME).getOrNull() : null);
238
238
}
239
239
240
+
/**
241
+
* Creates a provider that reuses the connection managers for different tenants if the destination is
242
+
* tenant-independent.
243
+
* <p>
244
+
* The provider checks for the presence of {@link OnBehalfOf} indicators in the destination's custom header
245
+
* providers. If all indicators show that the destination is on behalf of a provider tenant, the same connection
246
+
* manager is reused across tenants. Otherwise, tenant information is included in the cache key to ensure
247
+
* isolation.
248
+
* </p>
249
+
*
250
+
* @return A provider that reuses the connection managers for different tenants if the destination is
0 commit comments