Skip to content

Commit 5c126f1

Browse files
committed
Add missing javadoc
1 parent 710eefe commit 5c126f1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,19 @@ public ConnectionPoolManagerProvider byDestinationName()
237237
return by(dest -> dest != null ? dest.get(DestinationProperty.NAME).getOrNull() : null);
238238
}
239239

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
251+
* tenant-independent.
252+
*/
240253
@Nonnull
241254
public ConnectionPoolManagerProvider byOnBehalfOf()
242255
{

0 commit comments

Comments
 (0)