MongoEventLogOptions

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.

Constructors

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

Properties

Link copied to clipboard

How long an append may take, all its round trips together (the reservation of a block, the read of the aggregate's previous stream, the inserts, the lookups after a refusal, the placeholders, AppendDeadline): a server that does not answer fails it, so a command appending during an outage is answered before its wait ends, as unknown when it may have written. Below the default wait timeout.

Link copied to clipboard
val ddl: Ddl

How the log's collections and indexes are managed: created when missing by default (wow.ddl).

Link copied to clipboard

How long a tail leaves a done block on the counter's list, read through, for its node's next reservation (DoneBlocks); zero takes it out at once.

Link copied to clipboard

The longest wait of an idle tail, which doubles its wait up to it: an entry another node appends is read within it.

Link copied to clipboard

How long each of its calls may take (wow.mongo.operation-timeout, MongoTimeouts).

Link copied to clipboard

How often a tail polls while it finds entries (MongoEventLog's polling).

Link copied to clipboard

Whether the log shards its aggregate collections on a sharded cluster (the store's sharding option).

Link copied to clipboard

How many sequences a tail reads past its last at a time.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String