client-static
/
app.cash.backfila.client.static
/
StaticDatasourceBackfill
Static
Datasource
Backfill
abstract class
StaticDatasourceBackfill
<
I
:
Any
,
P
:
Any
> :
Backfill
Content copied to clipboard
Functions
Properties
Functions
runBatch
Link copied to clipboard
open fun
runBatch
(items:
List
<
I
>, config:
BackfillConfig
<
P
>)
Content copied to clipboard
Called for each batch of matching records.
runOne
Link copied to clipboard
open fun
runOne
(item:
I
, config:
BackfillConfig
<
P
>)
Content copied to clipboard
Called for each matching record.
validate
Link copied to clipboard
open fun
validate
(config:
BackfillConfig
<
P
>)
Content copied to clipboard
Override this and throw an exception to prevent the backfill from being created.
Properties
itemType
Link copied to clipboard
val
itemType
:
KClass
<
I
>
Content copied to clipboard
staticDatasource
Link copied to clipboard
abstract val
staticDatasource
:
List
<
I
>
Content copied to clipboard
This invokes the static list of items that the backfill will iterate over.