HCOLL-392 Add entry checksums

This commit is contained in:
leventov
2015-09-26 23:34:44 +03:00
parent ff90218c0a
commit 22b964e069
27 changed files with 581 additions and 16 deletions
@@ -566,6 +566,20 @@ public interface ChronicleHashBuilder<K, H extends ChronicleHash<K, ?, ?, ?>,
*/
B aligned64BitMemoryOperationsAtomic(boolean aligned64BitMemoryOperationsAtomic);
/**
* Configures whether hash containers, created by this builder, should compute and store entry
* checksums. It could be used to detect data corruption during recovery after crashes.
*
* <p>By default, {@linkplain #createPersistedTo(File) persisted} hash containers, created by
* {@code ChronicleMapBuilder} <i>do</i> compute and store entry checksums, but hash containers,
* created in the process memory via {@link #create()} - don't.
*
* @param checksumEntries if entry checksums should be computed and stored
* @return this builder back
* @see ChecksumEntry
*/
B checksumEntries(boolean checksumEntries);
/**
* Configures replication of the hash containers, created by this builder. See <a
* href="https://github.com/OpenHFT/Chronicle-Map#tcp--udp-replication"> the section about