Class CatalogIndexerServiceProperties
java.lang.Object
com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
com.broadleafcommerce.search.index.catalog.service.autoconfigure.CatalogIndexerServiceProperties
@ConfigurationProperties(prefix="broadleaf.indexer.catalog.service")
public class CatalogIndexerServiceProperties
extends com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe URI of the Catalog Service.The path of the endpoint to read product IDs for indexing within the Catalog Service.The path of the endpoint to read products for indexing within the Catalog Service.The service client to use when interacting with the catalog service.inthashCode()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.voidsetEndpoint(String endpoint) The URI of the Catalog Service.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.voidsetReadProductIdsPath(String readProductIdsPath) The path of the endpoint to read product IDs for indexing within the Catalog Service.voidsetReadProductsPath(String readProductsPath) The path of the endpoint to read products for indexing within the Catalog Service.voidsetServiceClient(String serviceClient) The service client to use when interacting with the catalog service.toString()Methods inherited from class com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
getWebClientBufferLimitInBytes, setWebClientBufferLimitInBytes
-
Constructor Details
-
CatalogIndexerServiceProperties
public CatalogIndexerServiceProperties()
-
-
Method Details
-
getEndpoint
The URI of the Catalog Service.- Returns:
- the URI of the Catalog Service
-
getReadProductIdsPath
The path of the endpoint to read product IDs for indexing within the Catalog Service.- Returns:
- the Catalog Service path to read product IDs
-
getReadProductsPath
The path of the endpoint to read products for indexing within the Catalog Service.- Returns:
- the Catalog Service path to read products
-
getServiceClient
The service client to use when interacting with the catalog service. Default is "indexerclient". -
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. -
setEndpoint
The URI of the Catalog Service.- Parameters:
endpoint- the URI of the Catalog Service
-
setReadProductIdsPath
The path of the endpoint to read product IDs for indexing within the Catalog Service.- Parameters:
readProductIdsPath- the Catalog Service path to read product IDs
-
setReadProductsPath
The path of the endpoint to read products for indexing within the Catalog Service.- Parameters:
readProductIdsPath- the Catalog Service path to read products
-
setServiceClient
The service client to use when interacting with the catalog service. Default is "indexerclient". -
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. -
equals
- Overrides:
equalsin classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
canEqual
- Overrides:
canEqualin classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
toString
- Overrides:
toStringin classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-