Package org.nuxeo.runtime.migration
Class MigrationServiceImpl.MigratorWithContext
- java.lang.Object
-
- org.nuxeo.runtime.migration.MigrationServiceImpl.MigratorWithContext
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- MigrationServiceImpl
protected static class MigrationServiceImpl.MigratorWithContext extends Object implements Runnable
Runnable for the migrator, that knows about the migration context.- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected BiConsumer<MigrationService.MigrationContext,Throwable>
afterMigration
protected Consumer<MigrationService.MigrationContext>
migration
protected MigrationService.MigrationContext
migrationContext
-
Constructor Summary
Constructors Constructor Description MigratorWithContext(Consumer<MigrationService.MigrationContext> migration, MigrationServiceImpl.ProgressReporter progressReporter, BiConsumer<MigrationService.MigrationContext,Throwable> afterMigration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterMigration(Throwable t)
void
requestShutdown()
void
run()
-
-
-
Field Detail
-
migration
protected final Consumer<MigrationService.MigrationContext> migration
-
migrationContext
protected final MigrationService.MigrationContext migrationContext
-
afterMigration
protected final BiConsumer<MigrationService.MigrationContext,Throwable> afterMigration
-
-
Constructor Detail
-
MigratorWithContext
public MigratorWithContext(Consumer<MigrationService.MigrationContext> migration, MigrationServiceImpl.ProgressReporter progressReporter, BiConsumer<MigrationService.MigrationContext,Throwable> afterMigration)
-
-