Class MarketNewsImageEnrichmentAsyncConfiguration

java.lang.Object
com.bluebell.greenhouse.platform.configuration.MarketNewsImageEnrichmentAsyncConfiguration

@Configuration public class MarketNewsImageEnrichmentAsyncConfiguration extends Object
Configuration for asynchronous market news image enrichment.
Version:
2.0.2
Author:
Stephen Prizio
  • Field Details

    • MARKET_NEWS_IMAGE_ENRICHMENT_EXECUTOR

      public static final String MARKET_NEWS_IMAGE_ENRICHMENT_EXECUTOR
      Market news image enrichment executor bean name.
      See Also:
  • Constructor Details

    • MarketNewsImageEnrichmentAsyncConfiguration

      public MarketNewsImageEnrichmentAsyncConfiguration()
  • Method Details

    • marketNewsImageEnrichmentExecutor

      @Bean("marketNewsImageEnrichmentExecutor") public Executor marketNewsImageEnrichmentExecutor(@Value("${bluebell.market-news.image-enrichment.executor.core-size:2}") int corePoolSize, @Value("${bluebell.market-news.image-enrichment.executor.max-size:4}") int maxPoolSize, @Value("${bluebell.market-news.image-enrichment.executor.queue-capacity:500}") int queueCapacity)
      Builds a bounded executor for market news image enrichment.
      Parameters:
      corePoolSize - core pool size
      maxPoolSize - maximum pool size
      queueCapacity - queue capacity
      Returns:
      Executor