Class DataExchangeServiceAutoConfiguration
java.lang.Object
com.broadleafcommerce.dataexchange.service.autoconfigure.DataExchangeServiceAutoConfiguration
@Configuration
@EnableConfigurationProperties({DataExchangeProperties.class,DataExchangeTaskExecutorProperties.class,DataExchangeLockCacheProperties.class})
public class DataExchangeServiceAutoConfiguration
extends Object
- Author:
- Kelly Tisdell (ktisdell)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.retry.support.RetryTemplate
Contrary to the bean name, there is nothing about thisRetryTemplate
that is, in itself, asynchronous.org.springframework.core.task.AsyncTaskExecutor
Returns a sharedThreadPoolTaskExecutor
, by default.lockService
(DataExchangeLockCacheProperties properties)
-
Constructor Details
-
DataExchangeServiceAutoConfiguration
public DataExchangeServiceAutoConfiguration()
-
-
Method Details
-
dataExchangeFuturesTaskExecutor
@Bean @ConditionalOnMissingBean(name="dataExchangeFuturesTaskExecutor") public org.springframework.core.task.AsyncTaskExecutor dataExchangeFuturesTaskExecutor(DataExchangeTaskExecutorProperties properties) Returns a sharedThreadPoolTaskExecutor
, by default. This will be used to parallelize orchestrated calls to multiple services or service endpoints. By default, this has a relatively high thread count (100) because these threads will spend time waiting for I/O.- Parameters:
properties
-- Returns:
-
dataExchangeAsyncRetryTemplate
@Bean @ConditionalOnMissingBean(name="dataExchangeAsyncRetryTemplate") public org.springframework.retry.support.RetryTemplate dataExchangeAsyncRetryTemplate(DataExchangeTaskExecutorProperties properties) Contrary to the bean name, there is nothing about thisRetryTemplate
that is, in itself, asynchronous. However, this is used by theRetryable
object to allow for automatic retries in case of failures during asynchronous execution. This assists with retry logic to prevent batch failures due to short-lived or transient failures. This instance is thread safe.- Parameters:
properties
-- Returns:
- See Also:
-
lockService
@Bean @ConditionalOnMissingBean public LockService lockService(DataExchangeLockCacheProperties properties)
-