io.permazen.kv.raft.fallback.NullMergeStrategy Maven / Gradle / Ivy
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen.kv.raft.fallback;
import io.permazen.kv.KVTransaction;
import java.util.Date;
/**
* {@link MergeStrategy} that does nothing, i.e., it leaves the destination database unmodified.
*/
public class NullMergeStrategy implements MergeStrategy {
@Override
public void mergeAndCommit(KVTransaction src, KVTransaction dst, Date lastActiveTime) {
src.commit();
dst.commit();
}
@Override
public String toString() {
return "Null";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy