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.boolean
needsToRun
(MigrationTaskContext context) Returns whether the migration needs to run.void
runMigration
(MutableMigrationTaskContext context) Implementations of this method perform the actual migration
-
Constructor Details
-
ProcessMessageSubscriptionSentTimeMigration
public ProcessMessageSubscriptionSentTimeMigration()
-
-
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.- Specified by:
needsToRun
in interfaceMigrationTask
-
runMigration
Description copied from interface:MigrationTask
Implementations of this method perform the actual migration- Specified by:
runMigration
in interfaceMigrationTask
-