Class MarketNewsImageEnrichmentAsyncConfiguration
java.lang.Object
com.bluebell.greenhouse.platform.configuration.MarketNewsImageEnrichmentAsyncConfiguration
Configuration for asynchronous market news image enrichment.
- Version:
- 2.0.2
- Author:
- Stephen Prizio
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMarket news image enrichment executor bean name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmarketNewsImageEnrichmentExecutor(int corePoolSize, int maxPoolSize, int queueCapacity) Builds a bounded executor for market news image enrichment.
-
Field Details
-
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 sizemaxPoolSize- maximum pool sizequeueCapacity- queue capacity- Returns:
Executor
-