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 SummaryConstructors
- 
Method SummaryModifier 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- 
ProviderPropertiespublic ProviderProperties()
 
- 
- 
Method Details- 
getWebClientBufferLimitInBytespublic int getWebClientBufferLimitInBytes()Size of theWebClient'sbuffer. Default is 10MB
- 
isEndToEndTimeoutEnabledpublic boolean isEndToEndTimeoutEnabled()Whether to set an end-to-end timeout on requests.
- 
getEndToEndTimeoutThis 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.
- 
isRetryEnabledpublic boolean isRetryEnabled()Whether to enable retry with exponential backoff on request failures.
- 
getRetryMaxAttemptspublic int getRetryMaxAttempts()The maximum number of times to retry a failed request.
- 
getRetryMinBackoffDurationThe minimum duration for the first backoff.
- 
getServiceClientThe service client to use when interacting with the catalog service. Default is "datafeedclient".
- 
setWebClientBufferLimitInBytespublic void setWebClientBufferLimitInBytes(int webClientBufferLimitInBytes) Size of theWebClient'sbuffer. Default is 10MB
- 
setEndToEndTimeoutEnabledpublic void setEndToEndTimeoutEnabled(boolean endToEndTimeoutEnabled) Whether to set an end-to-end timeout on requests.
- 
setEndToEndTimeoutThis 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.
- 
setRetryEnabledpublic void setRetryEnabled(boolean retryEnabled) Whether to enable retry with exponential backoff on request failures.
- 
setRetryMaxAttemptspublic void setRetryMaxAttempts(int retryMaxAttempts) The maximum number of times to retry a failed request.
- 
setRetryMinBackoffDurationThe minimum duration for the first backoff.
- 
setServiceClientThe service client to use when interacting with the catalog service. Default is "datafeedclient".
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-