flush

abstract suspend fun flush()

Finalizes this aggregate and loads it into the destination.

This method is called by the CDK when the aggregate is ready to be persisted. Implementations should perform the actual bulk load operation to write all accumulated records to the destination.