Writer

inner class Writer(client: MongoClient, val session: ClientSession?) : AutoCloseable

One worker's writes, on its step's client, in session when it has one.

Constructors

Link copied to clipboard
constructor(client: MongoClient, session: ClientSession?)

Properties

Link copied to clipboard
val session: ClientSession?
Link copied to clipboard
val snapshots: MongoCollection<Document>

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard

commands' streams as Wow's group: sequenced, then one ordered insertMany; the ones before a failure.

Link copied to clipboard

commands' streams, as insert: which of them it wrote, in their order.

Link copied to clipboard
fun write(commands: List<Aggregates.Command>, update: MongoShapes.Update, bigState: Boolean): Flushed

commands' snapshots as one unordered bulkWrite of update's shape; the ones without a write error.

Link copied to clipboard

commands' snapshots, as write: which of them it wrote, in their order.