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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
     
    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.
     

    Methods inherited from class com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties

    getWebClientBufferLimitInBytes, setWebClientBufferLimitInBytes

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CatalogIndexerServiceProperties

      public CatalogIndexerServiceProperties()
  • Method Details

    • getEndpoint

      public String getEndpoint()
      The URI of the Catalog Service.
      Returns:
      the URI of the Catalog Service
    • getReadProductIdsPath

      public String 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

      public String getReadProductsPath()
      The path of the endpoint to read products for indexing within the Catalog Service.
      Returns:
      the Catalog Service path to read products
    • getServiceClient

      public String 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 with ExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default.
    • setEndpoint

      public void setEndpoint(String endpoint)
      The URI of the Catalog Service.
      Parameters:
      endpoint - the URI of the Catalog Service
    • setReadProductIdsPath

      public void setReadProductIdsPath(String readProductIdsPath)
      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

      public void setReadProductsPath(String readProductsPath)
      The path of the endpoint to read products for indexing within the Catalog Service.
      Parameters:
      readProductIdsPath - the Catalog Service path to read products
    • setServiceClient

      public void setServiceClient(String serviceClient)
      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 with ExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties
    • toString

      public String toString()
      Overrides:
      toString in class com.broadleafcommerce.search.index.autoconfigure.CollectionIndexerWebClientProperties