Nested Class Summary
Nested Classes
Method Summary
All Methods Instance Methods Abstract Methods
Build the ServiceUrlProvider instance.
Set the checkInterval for probe.
Set the switch failoverDelay.
Set secondary choose policy.
Set the primary service url.
Set the secondary service url.
Set secondary authentication.
Set secondary tlsTrustCertsFilePath.
Set secondary tlsTrustStorePassword.
Set secondary tlsTrustStorePath.
Method Details
primary
Set the primary service url.
Parameters:
primary
-
Returns:
secondary
Set the secondary service url.
Parameters:
secondary
-
Returns:
failoverPolicy
Set secondary choose policy. The default secondary choose policy is `ORDER`.
Parameters:
policy
-
Returns:
secondaryAuthentication
Set secondary authentication.
Parameters:
authentication
-
Returns:
secondaryTlsTrustCertsFilePath
Set secondary tlsTrustCertsFilePath.
Parameters:
tlsTrustCertsFilePath
-
Returns:
secondaryTlsTrustStorePath
Set secondary tlsTrustStorePath.
Parameters:
tlsTrustStorePath
-
Returns:
secondaryTlsTrustStorePassword
Set secondary tlsTrustStorePassword.
Parameters:
tlsTrustStorePassword
-
Returns:
failoverDelay
Set the switch failoverDelay. When one cluster failed longer than failoverDelay, it will trigger cluster switch.
Parameters:
failoverDelay
-
timeUnit
-
Returns:
switchBackDelay
Set the switchBackDelay. When switched to the secondary cluster, and after the primary cluster comes back,
it will wait for switchBackDelay to switch back to the primary cluster.
Parameters:
switchBackDelay
-
timeUnit
-
Returns:
checkInterval
Set the checkInterval for probe.
Parameters:
interval
-
timeUnit
-
Returns:
build
Build the ServiceUrlProvider instance.
Returns: