public class NullMergeStrategy extends Object implements MergeStrategy
MergeStrategy that does nothing, i.e., it leaves the destination database unmodified.| Constructor and Description |
|---|
NullMergeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
mergeAndCommit(KVTransaction src,
KVTransaction dst,
Date lastActiveTime)
Merge data from the source database being migrated away from into the destination database being migrated to.
|
String |
toString() |
public void mergeAndCommit(KVTransaction src, KVTransaction dst, Date lastActiveTime)
MergeStrategy
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).
mergeAndCommit in interface MergeStrategysrc - read-only view into the database being migrated away fromdst - read-write transaction open on the database being migrated tolastActiveTime - time that dst was last active, or null if neverCopyright © 2016. All rights reserved.