Class ProviderProperties
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.provider.autoconfigure.ProviderProperties
- Direct Known Subclasses:
CatalogProviderProperties,InventoryProviderProperties,PricingProviderProperties,RatingsReviewsProviderProperties
Base class for properties that drive the External Providers.
- Author:
- Kelly Tisdell (ktisdell)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThis is an end-to-end timeout for sending the request as well as getting back a complete response.intThe maximum number of times to retry a failed request.The minimum duration for the first backoff.The service client to use when interacting with the catalog service.intSize of theWebClient'sbuffer.inthashCode()booleanWhether to set an end-to-end timeout on requests.booleanWhether to enable retry with exponential backoff on request failures.voidsetEndToEndTimeout(Duration endToEndTimeout) This is an end-to-end timeout for sending the request as well as getting back a complete response.voidsetEndToEndTimeoutEnabled(boolean endToEndTimeoutEnabled) Whether to set an end-to-end timeout on requests.voidsetRetryEnabled(boolean retryEnabled) Whether to enable retry with exponential backoff on request failures.voidsetRetryMaxAttempts(int retryMaxAttempts) The maximum number of times to retry a failed request.voidsetRetryMinBackoffDuration(Duration retryMinBackoffDuration) The minimum duration for the first backoff.voidsetServiceClient(String serviceClient) The service client to use when interacting with the catalog service.voidsetWebClientBufferLimitInBytes(int webClientBufferLimitInBytes) Size of theWebClient'sbuffer.toString()
-
Constructor Details
-
ProviderProperties
public ProviderProperties()
-
-
Method Details
-
getWebClientBufferLimitInBytes
public int getWebClientBufferLimitInBytes()Size of theWebClient'sbuffer. Default is 10MB -
isEndToEndTimeoutEnabled
public boolean isEndToEndTimeoutEnabled()Whether to set an end-to-end timeout on requests. -
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
The minimum duration for the first backoff. -
getServiceClient
The service client to use when interacting with the catalog service. Default is "datafeedclient". -
setWebClientBufferLimitInBytes
public void setWebClientBufferLimitInBytes(int webClientBufferLimitInBytes) Size of theWebClient'sbuffer. Default is 10MB -
setEndToEndTimeoutEnabled
public void setEndToEndTimeoutEnabled(boolean endToEndTimeoutEnabled) Whether to set an end-to-end timeout on requests. -
setEndToEndTimeout
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
The minimum duration for the first backoff. -
setServiceClient
The service client to use when interacting with the catalog service. Default is "datafeedclient". -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-