HCOLL-387 add a way to limit hash lookup slots to 4 bytes

This commit is contained in:
leventov
2015-09-23 02:02:36 +03:00
parent b113118707
commit 8870b05d86
6 changed files with 57 additions and 12 deletions
@@ -555,6 +555,17 @@ public interface ChronicleHashBuilder<K, H extends ChronicleHash<K, ?, ?, ?>,
*/
B immutableKeys();
/**
* Specifies whether on the current combination of platform, OS and Jvm aligned 8-byte reads
* and writes are atomic or not. By default, Chronicle tries to determine this itself, but
* if it fails it pessimistically assumes that 64-bit memory operations are <i>not</i> atomic.
*
* @param aligned64BitMemoryOperationsAtomic {@code true} if aligned 8-byte memory operations
* are atomic
* @return this builder back
*/
B aligned64BitMemoryOperationsAtomic(boolean aligned64BitMemoryOperationsAtomic);
/**
* 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