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 Details

    • DataExchangeServiceAutoConfiguration

      public DataExchangeServiceAutoConfiguration()
  • Method Details

    • dataExchangeFuturesTaskExecutor

      @Bean @ConditionalOnMissingBean(name="dataExchangeFuturesTaskExecutor") public org.springframework.core.task.AsyncTaskExecutor dataExchangeFuturesTaskExecutor(DataExchangeTaskExecutorProperties properties)
      Returns a shared ThreadPoolTaskExecutor, 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 this RetryTemplate that is, in itself, asynchronous. However, this is used by the Retryable 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)