Class NullMergeStrategy

All Implemented Interfaces:

public class NullMergeStrategy extends Object implements MergeStrategy
MergeStrategy that does nothing, i.e., it leaves the destination database unmodified.
  • Constructor Details

    • NullMergeStrategy

      public NullMergeStrategy()
  • Method Details

    • mergeAndCommit

      public void mergeAndCommit(KVTransaction src, KVTransaction dst, Date lastActiveTime)
      Description copied from interface: MergeStrategy
      Merge data from the source database being migrated away from into the destination database being migrated to.

      This method should commit() both transactions before returning; src should be committed before dst.

      If an exception is thrown, rollback() will be invoked on both transactions (a rollback() on an already-commit()'ed transaction does nothing).

      Specified by:
      mergeAndCommit in interface MergeStrategy
      src - read-only view into the database being migrated away from
      dst - read-write transaction open on the database being migrated to
      lastActiveTime - time that dst was last active, or null if never
    • toString

      public String toString()
      toString in class Object