SnapshotAutoConfiguration

@AutoConfiguration
@EnableConfigurationProperties(value = [SnapshotProperties::class])
class SnapshotAutoConfiguration(snapshotProperties: SnapshotProperties)

Constructors

Link copied to clipboard
constructor(snapshotProperties: SnapshotProperties)

Functions

Link copied to clipboard
@Bean
@ConditionalOnProperty(value = ["wow.eventsourcing.snapshot.storage"], havingValue = "in_memory")
fun inMemorySnapshotRepository(): SnapshotRepository
Link copied to clipboard
@Bean
@ConditionalOnProperty(value = ["wow.eventsourcing.snapshot.strategy"], matchIfMissing = true, havingValue = "all")
fun simpleSnapshotStrategy(snapshotRepository: SnapshotRepository): SnapshotStrategy
Link copied to clipboard
@Bean
fun snapshotDispatcher(@Qualifier(value = "wow.CurrentBoundedContext") namedBoundedContext: NamedBoundedContext, snapshotHandler: SnapshotHandler, stateEventBus: StateEventBus): SnapshotDispatcher
Link copied to clipboard
Link copied to clipboard
@Bean
fun snapshotHandler(@Qualifier(value = "snapshotFilterChain") chain: FilterChain<StateEventExchange<*>>): SnapshotHandler
Link copied to clipboard
@Bean
@ConditionalOnProperty(value = ["wow.eventsourcing.snapshot.strategy"], havingValue = "version_offset")
fun versionOffsetSnapshotStrategy(snapshotRepository: SnapshotRepository): SnapshotStrategy