Dirty outdated entries on reconnect without affecting critical activities, closes https://github.com/ChronicleEnterprise/Chronicle-Map-Enterprise/issues/49

This commit is contained in:
Ivan Rakov
2021-03-02 14:11:24 +03:00
parent d322df46de
commit adfb833ca5
2 changed files with 78 additions and 12 deletions
@@ -17,6 +17,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.core.threads.EventLoop;
import net.openhft.chronicle.hash.Data;
import net.openhft.chronicle.hash.replication.ReplicableEntry;
import org.jetbrains.annotations.NotNull;
@@ -137,8 +138,9 @@ public interface Replica extends Closeable {
* entries to a new remote node as it connects.
*
* @param fromTimeStamp the timestamp from which all entries should be dirty
* @param eventLoop event loop in which dirtying to be executed
*/
void dirtyEntries(long fromTimeStamp);
void dirtyEntries(long fromTimeStamp, @NotNull EventLoop eventLoop);
/**
* the {@code modificationNotifier} is called when ever there is a change applied to the