Fixed several replication bugs; Value -> Data; extracted ReplicableEntry as a superclass of HashReplicableEntry

This commit is contained in:
leventov
2015-06-15 21:34:45 +03:00
parent f1da352a5d
commit bf20bc98c3
55 changed files with 6708 additions and 6379 deletions
@@ -19,15 +19,14 @@
package net.openhft.chronicle.hash.impl;
import net.openhft.chronicle.bytes.ReadAccess;
import net.openhft.chronicle.hash.AbstractValue;
import net.openhft.chronicle.hash.Value;
import net.openhft.chronicle.hash.AbstractData;
import net.openhft.lang.io.DirectBytes;
import net.openhft.lang.io.DirectStore;
import net.openhft.lang.io.serialization.JDKObjectSerializer;
import static net.openhft.chronicle.hash.impl.JavaLangBytesAccessors.uncheckedBytesAccessor;
public abstract class CopyingInstanceValue<I, T> extends AbstractValue<I, T> {
public abstract class CopyingInstanceData<I, T> extends AbstractData<I, T> {
public static DirectBytes getBuffer(DirectBytes b, long capacity) {
if (b != null) {
@@ -0,0 +1,8 @@
package net.openhft.chronicle.hash.impl.value.instance;
import net.openhft.chronicle.hash.Data;
public interface KeyInitableData<K, T> extends Data<K, T> {
void initKey(K key);
}
@@ -1,8 +0,0 @@
package net.openhft.chronicle.hash.impl.value.instance;
import net.openhft.chronicle.hash.Value;
public interface KeyInitableValue<K, T> extends Value<K, T> {
void initKey(K key);
}