protected static class MigrationServiceImpl.MigratorWithContext extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected BiConsumer<MigrationService.MigrationContext,Throwable> |
afterMigration |
protected Consumer<MigrationService.MigrationContext> |
migration |
protected MigrationService.MigrationContext |
migrationContext |
Constructor and Description |
---|
MigratorWithContext(Consumer<MigrationService.MigrationContext> migration,
MigrationServiceImpl.ProgressReporter progressReporter,
BiConsumer<MigrationService.MigrationContext,Throwable> afterMigration) |
Modifier and Type | Method and Description |
---|---|
void |
afterMigration(Throwable t) |
void |
requestShutdown() |
void |
run() |
protected final Consumer<MigrationService.MigrationContext> migration
protected final MigrationService.MigrationContext migrationContext
protected final BiConsumer<MigrationService.MigrationContext,Throwable> afterMigration
public MigratorWithContext(Consumer<MigrationService.MigrationContext> migration, MigrationServiceImpl.ProgressReporter progressReporter, BiConsumer<MigrationService.MigrationContext,Throwable> afterMigration)
public void afterMigration(Throwable t)
public void requestShutdown()
Copyright © 2018 Nuxeo. All rights reserved.