Package org.zalando.nakadiproducer
Interface NakadiProducerFlywayCallback
-
public interface NakadiProducerFlywayCallbackThis is the main callback interface that should be implemented to get access to flyway lifecycle notifications. Simply add code to the callback method you are interested in having.Each callback method will run within its own transaction.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterBaseline(Connection connection)Runs after the baseline task executes.default voidafterClean(Connection connection)Runs after the clean task executes.default voidafterEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo info)Runs after each migration script is executed.default voidafterEachUndo(Connection connection, org.flywaydb.core.api.MigrationInfo info)Runs after each migration script is undone.default voidafterInfo(Connection connection)Runs after the info task executes.default voidafterMigrate(Connection connection)Runs after the migrate task executes.default voidafterRepair(Connection connection)Runs after the repair task executes.default voidafterUndo(Connection connection)Runs after the undo task executes.default voidafterValidate(Connection connection)Runs after the validate task executes.default voidbeforeBaseline(Connection connection)Runs before the baseline task executes.default voidbeforeClean(Connection connection)Runs before the clean task executes.default voidbeforeEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo info)Runs before each migration script is executed.default voidbeforeEachUndo(Connection connection, org.flywaydb.core.api.MigrationInfo info)Runs before each migration script is undone.default voidbeforeInfo(Connection connection)Runs before the info task executes.default voidbeforeMigrate(Connection connection)Runs before the migrate task executes.default voidbeforeRepair(Connection connection)Runs before the repair task executes.default voidbeforeUndo(Connection connection)Runs before the undo task executes.default voidbeforeValidate(Connection connection)Runs before the validate task executes.
-
-
-
Method Detail
-
beforeClean
default void beforeClean(Connection connection)
Runs before the clean task executes.- Parameters:
connection- A valid connection to the database.
-
afterClean
default void afterClean(Connection connection)
Runs after the clean task executes.- Parameters:
connection- A valid connection to the database.
-
beforeMigrate
default void beforeMigrate(Connection connection)
Runs before the migrate task executes.- Parameters:
connection- A valid connection to the database.
-
afterMigrate
default void afterMigrate(Connection connection)
Runs after the migrate task executes.- Parameters:
connection- A valid connection to the database.
-
beforeUndo
default void beforeUndo(Connection connection)
Runs before the undo task executes.- Parameters:
connection- A valid connection to the database.
-
beforeEachUndo
default void beforeEachUndo(Connection connection, org.flywaydb.core.api.MigrationInfo info)
Runs before each migration script is undone.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for the migration to be undone.
-
afterEachUndo
default void afterEachUndo(Connection connection, org.flywaydb.core.api.MigrationInfo info)
Runs after each migration script is undone.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for the migration just undone.
-
afterUndo
default void afterUndo(Connection connection)
Runs after the undo task executes.- Parameters:
connection- A valid connection to the database.
-
beforeEachMigrate
default void beforeEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo info)
Runs before each migration script is executed.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for this migration.
-
afterEachMigrate
default void afterEachMigrate(Connection connection, org.flywaydb.core.api.MigrationInfo info)
Runs after each migration script is executed.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for this migration.
-
beforeValidate
default void beforeValidate(Connection connection)
Runs before the validate task executes.- Parameters:
connection- A valid connection to the database.
-
afterValidate
default void afterValidate(Connection connection)
Runs after the validate task executes.- Parameters:
connection- A valid connection to the database.
-
beforeBaseline
default void beforeBaseline(Connection connection)
Runs before the baseline task executes.- Parameters:
connection- A valid connection to the database.
-
afterBaseline
default void afterBaseline(Connection connection)
Runs after the baseline task executes.- Parameters:
connection- A valid connection to the database.
-
beforeRepair
default void beforeRepair(Connection connection)
Runs before the repair task executes.- Parameters:
connection- A valid connection to the database.
-
afterRepair
default void afterRepair(Connection connection)
Runs after the repair task executes.- Parameters:
connection- A valid connection to the database.
-
beforeInfo
default void beforeInfo(Connection connection)
Runs before the info task executes.- Parameters:
connection- A valid connection to the database.
-
afterInfo
default void afterInfo(Connection connection)
Runs after the info task executes.- Parameters:
connection- A valid connection to the database.
-
-