Package com.coditory.sherlock
Class SherlockMigrator.MigrationResult
java.lang.Object
com.coditory.sherlock.SherlockMigrator.MigrationResult
- Enclosing class:
- SherlockMigrator
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Executes the action when migration process finishes.onRejected
(Runnable action) Executes the action when migration lock was not acquired.
-
Method Details
-
isMigrated
public boolean isMigrated() -
onFinish
Executes the action when migration process finishes. The action is only executed by the migrator instance that started the migration process.- Parameters:
action
- the action to be executed after migration- Returns:
- migration result for chaining
-
onRejected
Executes the action when migration lock was not acquired.- Parameters:
action
- the action to be executed when migration lock was not acquired- Returns:
- migration result for chaining
-