Class JobBackoffRestoreMigration
java.lang.Object
io.camunda.zeebe.engine.state.migration.JobBackoffRestoreMigration
- All Implemented Interfaces:
MigrationTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns identifier for the migration task.boolean
needsToRun
(ProcessingState processingState) Returns whether the migration needs to run.void
runMigration
(MutableProcessingState processingState) Implementations of this method perform the actual migration
-
Constructor Details
-
JobBackoffRestoreMigration
public JobBackoffRestoreMigration()
-
-
Method Details
-
getIdentifier
Description copied from interface:MigrationTask
Returns identifier for the migration task.The identifier is used for logging.
In the future, it might also be used to store the migrations that were run in persistent state
- Specified by:
getIdentifier
in interfaceMigrationTask
- Returns:
- identifier for the migration task
-
needsToRun
Description copied from interface:MigrationTask
Returns whether the migration needs to run. By default this returns true. We keep track of whether migrations have already run, and we use this to determine if they need to run. There are migrations from before this mechanism was implemented. Because of this we need to make sure they still have the opportunity to decide if they need to run in the old way.- Specified by:
needsToRun
in interfaceMigrationTask
- Parameters:
processingState
- the immutable Zeebe state- Returns:
- whether the migration needs to run
-
runMigration
Description copied from interface:MigrationTask
Implementations of this method perform the actual migration- Specified by:
runMigration
in interfaceMigrationTask
- Parameters:
processingState
- the mutable Zeebe state
-