StateAutoConfiguration

@AutoConfiguration
@EnableConfigurationProperties(value = [StateProperties::class])
class StateAutoConfiguration

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@Bean
@ConditionalOnProperty(value = ["wow.eventsourcing.state.bus.type"], havingValue = "in_memory")
fun inMemoryStateEventBus(): StateEventBus
Link copied to clipboard
@Bean
@Primary
fun localFirstStateEventBus(localBus: LocalStateEventBus, distributedBus: DistributedStateEventBus, @Qualifier(value = "localFirstStateEventBusDistributedCopies") distributedCopies: LocalFirstDistributedCopies): LocalFirstStateEventBus
Link copied to clipboard
@Bean(value = ["localFirstStateEventBusDistributedCopies"])
@ConditionalOnBean(value = [DistributedStateEventBus::class])
@Order(value = 50)
fun localFirstStateEventBusDistributedCopies(stateProperties: StateProperties, metrics: ObjectProvider<WowMetrics>): LocalFirstDistributedCopies

The distributed copies of LocalFirstStateEventBus, its own bean so a decorated bus never hides it: a runtime component stopped after the dispatchers and before the transports.

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(value = [LocalStateEventBus::class])
@ConditionalOnBean(value = [DistributedStateEventBus::class])
fun localStateEventBus(): LocalStateEventBus
Link copied to clipboard
@Bean
fun stateEventCompensator(stateAggregateFactory: StateAggregateFactory, eventStore: EventStore, stateEventBus: StateEventBus): StateEventCompensator