Class ProcessMessageSubscriptionSentTimeMigration
java.lang.Object
io.camunda.zeebe.engine.state.migration.ProcessMessageSubscriptionSentTimeMigration
- All Implemented Interfaces:
MigrationTask
Migrates pending process message subscriptions by adding them to
PendingProcessMessageSubscriptionState and removing them from
ZbColumnFamilies.PROCESS_SUBSCRIPTION_BY_SENT_TIME.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns identifier for the migration task.booleanneedsToRun(ProcessingState processingState) Returns whether the migration needs to run.voidrunMigration(MutableProcessingState processingState) Implementations of this method perform the actual migration
-
Constructor Details
-
ProcessMessageSubscriptionSentTimeMigration
public ProcessMessageSubscriptionSentTimeMigration()
-
-
Method Details
-
getIdentifier
Description copied from interface:MigrationTaskReturns 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:
getIdentifierin interfaceMigrationTask- Returns:
- identifier for the migration task
-
needsToRun
Description copied from interface:MigrationTaskReturns 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:
needsToRunin interfaceMigrationTask- Parameters:
processingState- the immutable Zeebe state- Returns:
- whether the migration needs to run
-
runMigration
Description copied from interface:MigrationTaskImplementations of this method perform the actual migration- Specified by:
runMigrationin interfaceMigrationTask- Parameters:
processingState- the mutable Zeebe state
-