public final class BackendConnectionFactory
extends java.lang.Object
Session to create appropriate ServerConnectionI
instances for candidate URLs to probe endpoint quality and establish physical connections.| Modifier and Type | Method and Description |
|---|---|
static ServerConnectionI |
getBackendConnection(Session session,
java.lang.String hostOrUri,
boolean existsAlternativeConnection,
ServerConnectionInfoReceiverI infoReceiver,
long token)
Resolves and instantiates a
ServerConnectionI for the given target endpoint. |
public static ServerConnectionI getBackendConnection(Session session, java.lang.String hostOrUri, boolean existsAlternativeConnection, ServerConnectionInfoReceiverI infoReceiver, long token)
ServerConnectionI for the given target endpoint.session - active client session orchestratorhostOrUri - raw hostname or URI with explicit schemeexistsAlternativeConnection - whether an alternative fallback connection existsinfoReceiver - callback receiver for connection status updatestoken - correlation token for connection lifecycle trackingServerConnectionI instancejava.lang.IllegalArgumentException - if factory construction or connection allocation failsCopyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.