public static interface Depot.Declaration
Modifier and Type | Method and Description |
---|---|
Depot.Declaration |
global()
Configures depot to have a single partition.
|
Depot.Declaration |
migration(java.lang.String migrationId,
RamaFunction1<?,?> migrationFunction)
Specify a migration on this depot.
|
Depot.Declaration global()
Depot.Declaration migration(java.lang.String migrationId, RamaFunction1<?,?> migrationFunction)
migrationId
- Used to determine if a migration should be restarted or continue where it left off when the module is updated mid-migration. If this remains the same, it continues where it left off. Otherwise, it restarts from the beginning of the depot.migrationFunction
- Function from depot record to migrated record. Return Depot.TOMBSTONE to remove the record from the depot.