finish

abstract fun finish(state: S): DlqLoader.Complete

Called when the data needs to be persisted. The CDK will call this if data hasn't been persisted for a given amount of time or when under memory pressure in an attempt to reclaim some memory to continue processing.