Class ExternalPricingProviderProperties
java.lang.Object
com.broadleafcommerce.catalogbrowse.service.provider.external.pricing.ExternalPricingProviderProperties
@ConfigurationProperties("broadleaf.catalogbrowse.pricingprovider")
public class ExternalPricingProviderProperties
extends Object
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe URI path for pricing items.The service client to use when interacting with pricing service.getUrl()The base url for an external cart service.booleanWhere available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage.voidsetLoopbackOptimizationEnabled(boolean loopbackOptimizationEnabled) Where available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage.voidsetPriceInfosUri(String priceInfosUri) The URI path for pricing items.voidsetServiceClient(String serviceClient) The service client to use when interacting with pricing service.voidThe base url for an external cart service.
-
Constructor Details
-
ExternalPricingProviderProperties
public ExternalPricingProviderProperties()
-
-
Method Details
-
getUrl
The base url for an external cart service. -
setUrl
The base url for an external cart service. -
getPriceInfosUri
The URI path for pricing items. -
setPriceInfosUri
The URI path for pricing items. -
getServiceClient
The service client to use when interacting with pricing service. Default is "catalogbrowseclient" -
setServiceClient
The service client to use when interacting with pricing service. Default is "catalogbrowseclient" -
isLoopbackOptimizationEnabled
public boolean isLoopbackOptimizationEnabled()Where available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage. This saves on expenses related to socket creation, json serialization/deserialization, and SSL encryption and handshake. True by default. Note, this value is examined in concert withExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default. -
setLoopbackOptimizationEnabled
public void setLoopbackOptimizationEnabled(boolean loopbackOptimizationEnabled) Where available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage. This saves on expenses related to socket creation, json serialization/deserialization, and SSL encryption and handshake. True by default. Note, this value is examined in concert withExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default.
-