EventSubscriptionProviderKurrent
class EventSubscriptionProviderKurrent(client: KurrentDBClient, subscriptionConfig: KurrentSubscriptionConfig = KurrentSubscriptionConfig(), streamPrefix: String = DEFAULT_KURRENT_STREAM_PREFIX) : EventSubscriptionProvider<CheckpointKurrent> (source)
Subscription sources on one KurrentDB client. streamPrefix selects the streams to subscribe to and must match the prefix the event stores write with.
Constructors
Link copied to clipboard
constructor(client: KurrentDBClient, subscriptionConfig: KurrentSubscriptionConfig = KurrentSubscriptionConfig(), streamPrefix: String = DEFAULT_KURRENT_STREAM_PREFIX)
Functions
Link copied to clipboard
open override fun <EVENT : Any, EVENT_PERSISTED : Any> aggregateSubscriptionSource(definition: AggregateDefinition<*, *, EVENT, EVENT_PERSISTED>): AggregateEventSubscriptionSource<EVENT, CheckpointKurrent>
Link copied to clipboard
open override fun <EVENT : Any, EVENT_PERSISTED : Any> globalSubscriptionSource(globalTypes: EventTypeNames.Global<EVENT>, codec: Codec<EVENT, EVENT_PERSISTED>): GlobalEventSubscriptionSource<EVENT, CheckpointKurrent>