Package-level declarations

Types

Link copied to clipboard
class MongoEventLog(client: MongoClient, databaseName: String, context: String, val partitions: Int, dispatcher: CoroutineDispatcher = VirtualThreads.dispatcher, options: MongoEventLogOptions = MongoEventLogOptions()) : EventLog, AccessWalks

The EventLog of one bounded context on MongoDB, a first-class log backend (documentation/designs/03-log-and-snapshot.md §2). It needs a replica set, for its majority reads and writes.

Link copied to clipboard
class MongoEventLogOptions(val pollInterval: Duration = DEFAULT_POLL_INTERVAL, val maxPollInterval: Duration = DEFAULT_MAX_POLL_INTERVAL, val tailBatch: Int = DEFAULT_TAIL_BATCH, val appendTimeout: Duration = DEFAULT_APPEND_TIMEOUT, val operationTimeout: Duration = MongoTimeouts.OPERATION, val ddl: Ddl = Ddl.AUTO, val sharding: MongoSharding = MongoSharding.AUTO, val doneGrace: Duration = DoneBlocks.GRACE)

The settings of a MongoEventLog: how its tails poll, how long its calls may take, and how it manages and shards its collections. An immutable value with the defaults a host starts from; the store builds it once from its configuration (MongoStoreProvider), and the log takes it whole.