BackendProviderKurrent
class BackendProviderKurrent(client: KurrentDBClient, snapshotStoreProvider: SnapshotStoreProvider, checkpointStoreProvider: CheckpointStoreProvider<CheckpointKurrent>, subscriptionOwnershipProvider: SubscriptionOwnershipProvider, subscriptionConfig: KurrentSubscriptionConfig = KurrentSubscriptionConfig(), streamPrefix: String = DEFAULT_KURRENT_STREAM_PREFIX) : BackendProvider<CheckpointKurrent> , EventStoreProvider, EventSubscriptionProvider<CheckpointKurrent> , SnapshotStoreProvider, CheckpointStoreProvider<CheckpointKurrent> , SubscriptionOwnershipProvider(source)
Kurrent events and subscriptions with the snapshot, checkpoint and ownership providers of another backend. streamPrefix names every aggregate stream; the default keeps a deployment's existing streams, and a consumer with streams under another prefix passes that prefix.
Constructors
Link copied to clipboard
constructor(client: KurrentDBClient, snapshotStoreProvider: SnapshotStoreProvider, checkpointStoreProvider: CheckpointStoreProvider<CheckpointKurrent>, subscriptionOwnershipProvider: SubscriptionOwnershipProvider, subscriptionConfig: KurrentSubscriptionConfig = KurrentSubscriptionConfig(), streamPrefix: String = DEFAULT_KURRENT_STREAM_PREFIX)
Functions
Link copied to clipboard
open override fun <EVENT : Any, EVENT_PERSISTED : Any> aggregateStore(definition: AggregateDefinition<*, *, EVENT, EVENT_PERSISTED>): AggregateEventStore<EVENT>
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
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>
Link copied to clipboard
open override fun <STATE : AggregateState, STATE_PERSISTED : Any> snapshotStore(aggregateDefinition: AggregateDefinition<STATE, *, *, *>, stateSchema: AggregateStateSchema<STATE, STATE_PERSISTED>): SnapshotStore<STATE>
Link copied to clipboard