Skip to content

//tempest2/app.cash.tempest2/WritingPager/Handler

Handler

[jvm]\ interface Handler<T>

Functions

Name Summary
beforePage [jvm]
abstract fun beforePage(remainingUpdates: List<@JvmSuppressWildcardsT>, maxTransactionItems: Int): Int
Invoked before each page with the full set of updates yet be processed.
eachPage [jvm]
abstract fun eachPage(proceed: () -> Unit)
Intercept each page’s processing. Use this to decorate processing with metrics or retries.
finishPage [jvm]
abstract fun finishPage(builder: TransactionWriteSet.Builder)
Invoked after a page of items has been computed.
item [jvm]
abstract fun item(builder: TransactionWriteSet.Builder, item: T)
Invoked to update each item.
pageWritten [jvm]
open fun pageWritten(writeSet: TransactionWriteSet)
Invoked after a page of items has been written.