Class SherlockMigrator.MigrationResult

  • Enclosing class:
    SherlockMigrator

    public static final class SherlockMigrator.MigrationResult
    extends java.lang.Object
    • Method Detail

      • isMigrated

        public boolean isMigrated()
      • onFinish

        public SherlockMigrator.MigrationResult onFinish​(java.lang.Runnable action)
        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

        public SherlockMigrator.MigrationResult onRejected​(java.lang.Runnable action)
        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