SubscriptionRunner

class SubscriptionRunner<EVENT, CHECKPOINT : Checkpoint>(source: EventSubscriptionSource<EVENT, CHECKPOINT>, subscriber: EventSubscriber<EVENT, CHECKPOINT>, checkpointStore: CheckpointStore<CHECKPOINT>, ownership: SubscriptionOwnership, initialDelay: Duration = Duration.ZERO, reconnectDelay: Duration = 5.seconds)(source)

Runs an EventSubscriber, managing reconnection, lifecycle, and optional checkpoint persistence.

Constructors

Link copied to clipboard
constructor(source: EventSubscriptionSource<EVENT, CHECKPOINT>, subscriber: EventSubscriber<EVENT, CHECKPOINT>, checkpointStore: CheckpointStore<CHECKPOINT>, ownership: SubscriptionOwnership, initialDelay: Duration = Duration.ZERO, reconnectDelay: Duration = 5.seconds)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun close()
Link copied to clipboard
suspend fun start()
Link copied to clipboard
suspend fun stop()