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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
This is an end-to-end timeout for sending the request as well as getting back a complete response.int
The 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.int
Size of theWebClient's
buffer.int
hashCode()
boolean
Whether to set an end-to-end timeout on requests.boolean
Whether to enable retry with exponential backoff on request failures.void
setEndToEndTimeout
(Duration endToEndTimeout) This is an end-to-end timeout for sending the request as well as getting back a complete response.void
setEndToEndTimeoutEnabled
(boolean endToEndTimeoutEnabled) Whether to set an end-to-end timeout on requests.void
setRetryEnabled
(boolean retryEnabled) Whether to enable retry with exponential backoff on request failures.void
setRetryMaxAttempts
(int retryMaxAttempts) The maximum number of times to retry a failed request.void
setRetryMinBackoffDuration
(Duration retryMinBackoffDuration) The minimum duration for the first backoff.void
setServiceClient
(String serviceClient) The service client to use when interacting with the catalog service.void
setWebClientBufferLimitInBytes
(int webClientBufferLimitInBytes) Size of theWebClient's
buffer.toString()
-
Constructor Details
-
ProviderProperties
public ProviderProperties()
-
-
Method Details
-
getWebClientBufferLimitInBytes
public int getWebClientBufferLimitInBytes()Size of theWebClient's
buffer. 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's
buffer. 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
-