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
@@ -18,7 +18,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.hash.replication.HashReplicableEntry;
import net.openhft.chronicle.hash.replication.ReplicableEntry;
import net.openhft.lang.io.Bytes;
import org.jetbrains.annotations.NotNull;
@@ -144,7 +144,7 @@ public interface Replica extends Closeable {
* @param chronicleId is the channel id used to identify the canonical map or queue
* @return the size of the entry
*/
boolean identifierCheck(@NotNull HashReplicableEntry<?> entry, int chronicleId);
boolean identifierCheck(@NotNull ReplicableEntry entry, int chronicleId);
/**
@@ -213,7 +213,7 @@ public interface Replica extends Closeable {
* @param chronicleId only assigned when clustering
* @return {@code true} if this entry should be ignored
*/
public abstract boolean shouldBeIgnored(final HashReplicableEntry<?> entry, final int chronicleId);
public abstract boolean shouldBeIgnored(final ReplicableEntry entry, final int chronicleId);
}