Class MarketEventOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.market.event.MarketEventOrchestrator
- All Implemented Interfaces:
GenericOrchestrator
@Service
@Transactional(readOnly=true)
public class MarketEventOrchestrator
extends Object
implements GenericOrchestrator
Owns the unit of work for the
MarketEvent endpoints.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetchMarketEvents(String actor) Queues the market-events fetch job and returns the identity of the queued attempt.getMarketEventsForInterval(MarketEventIntervalRequest intervalRequest, ZoneId zone) Obtains theMarketEvents falling within the requested interval.
-
Constructor Details
-
MarketEventOrchestrator
public MarketEventOrchestrator()
-
-
Method Details
-
getMarketEventsForInterval
public List<MarketEventDTO> getMarketEventsForInterval(MarketEventIntervalRequest intervalRequest, ZoneId zone) Obtains theMarketEvents falling within the requested interval.- Parameters:
intervalRequest-MarketEventIntervalRequestzone- resolvedZoneId- Returns:
MarketEventDTOs
-
fetchMarketEvents
Queues the market-events fetch job and returns the identity of the queued attempt.- Parameters:
actor- initiating actor- Returns:
- the committed submission
-