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 boolean
boolean
The 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.int
hashCode()
boolean
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.void
setEndpoint
(String endpoint) The URI of the Catalog Service.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.void
setReadProductIdsPath
(String readProductIdsPath) The path of the endpoint to read product IDs for indexing within the Catalog Service.void
setReadProductsPath
(String readProductsPath) The path of the endpoint to read products for indexing within the Catalog Service.void
setServiceClient
(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:
equals
in classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
canEqual
- Overrides:
canEqual
in classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-
toString
- Overrides:
toString
in classcom.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
-