java.lang.Object
com.broadleafcommerce.datafeed.service.collector.provider.autoconfigure.ProviderProperties
Direct Known Subclasses:
CatalogProviderProperties, InventoryProviderProperties, PricingProviderProperties, RatingsReviewsProviderProperties

public class ProviderProperties extends Object
Base class for properties that drive the External Providers.
Author:
Kelly Tisdell (ktisdell)
  • Constructor Details

    • ProviderProperties

      public ProviderProperties()
  • Method Details

    • getWebClientBufferLimitInBytes

      public int getWebClientBufferLimitInBytes()
      Size of the WebClient's buffer. Default is 10MB
    • isEndToEndTimeoutEnabled

      public boolean isEndToEndTimeoutEnabled()
      Whether to set an end-to-end timeout on requests.
    • getEndToEndTimeout

      public Duration getEndToEndTimeout()
      This is an end-to-end timeout for sending the request as well as getting back a complete response. This is useful to put a maximum bound on an API call, regardless of what happens.
    • isRetryEnabled

      public boolean isRetryEnabled()
      Whether to enable retry with exponential backoff on request failures.
    • getRetryMaxAttempts

      public int getRetryMaxAttempts()
      The maximum number of times to retry a failed request.
    • getRetryMinBackoffDuration

      public Duration getRetryMinBackoffDuration()
      The minimum duration for the first backoff.
    • getServiceClient

      public String getServiceClient()
      The service client to use when interacting with the catalog service. Default is "datafeedclient".
    • setWebClientBufferLimitInBytes

      public void setWebClientBufferLimitInBytes(int webClientBufferLimitInBytes)
      Size of the WebClient's buffer. Default is 10MB
    • setEndToEndTimeoutEnabled

      public void setEndToEndTimeoutEnabled(boolean endToEndTimeoutEnabled)
      Whether to set an end-to-end timeout on requests.
    • setEndToEndTimeout

      public void setEndToEndTimeout(Duration endToEndTimeout)
      This is an end-to-end timeout for sending the request as well as getting back a complete response. This is useful to put a maximum bound on an API call, regardless of what happens.
    • setRetryEnabled

      public void setRetryEnabled(boolean retryEnabled)
      Whether to enable retry with exponential backoff on request failures.
    • setRetryMaxAttempts

      public void setRetryMaxAttempts(int retryMaxAttempts)
      The maximum number of times to retry a failed request.
    • setRetryMinBackoffDuration

      public void setRetryMinBackoffDuration(Duration retryMinBackoffDuration)
      The minimum duration for the first backoff.
    • setServiceClient

      public void setServiceClient(String serviceClient)
      The service client to use when interacting with the catalog service. Default is "datafeedclient".
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object