public static interface EngineReplication.ModificationIterator
| Modifier and Type | Method and Description |
|---|---|
void |
dirtyEntries(long fromTimeStamp)
Dirties all entries with a modification time equal to
fromTimeStamp or newer. |
void |
forEach(java.util.function.Consumer<EngineReplication.ReplicationEntry> consumer) |
boolean |
hasNext() |
void |
setModificationNotifier(EngineReplication.ModificationNotifier modificationNotifier)
the
modificationNotifier is called when ever there is a change applied to the
modification iterator |
void forEach(@NotNull
java.util.function.Consumer<EngineReplication.ReplicationEntry> consumer)
boolean hasNext()
void dirtyEntries(long fromTimeStamp)
throws InterruptedException
fromTimeStamp or newer. It
means all these entries will be considered as "new" by this ModificationIterator and
iterated once again no matter if they have already been. This functionality is used to publish recently modified entries to a new remote node as it connects.
fromTimeStamp - the timestamp from which all entries should be dirtyInterruptedExceptionvoid setModificationNotifier(@NotNull
EngineReplication.ModificationNotifier modificationNotifier)
modificationNotifier is called when ever there is a change applied to the
modification iteratormodificationNotifier - gets notified when a change occursCopyright © 2015. All rights reserved.