CampaignExecution repository
CampaignExecutionRepository
Purpose
CampaignExecutionRepository
is a JPA repository designed for accessing CampaignExecution
entities. It provides standard CRUD operations, specification-based filtering, and synchronous access in transactional scenarios.
Code Example
Inherited Interfaces
JpaRepository
— standard CRUD methodsJpaSpecificationExecutor
— filtering support via Spring SpecificationsSynchronousAccessRepository
— providesgetSync(id)
method, which blocks reading until the end of the current transaction
SynchronousAccessRepository
is a timveroOS interface that guarantees consistent data access in multithreaded environments — especially important for use withCampaignExecutionConsumer
.
Key Method
This method is used by CampaignExecutionConsumer
to select the latest NEW
execution ready to be launched.
Usage Example
Last updated
Was this helpful?