public static interface EngineReplicationLangBytes.EngineModificationIterator
Modifier and Type | Method and Description |
---|---|
void |
dirtyEntries(long fromTimeStamp)
Dirties all entries with a modification time equal to
fromTimeStamp or newer. |
boolean |
hasNext() |
boolean |
nextEntry(EngineReplicationLangBytes.EngineEntryCallback callback)
A non-blocking call that provides the entry that has changed to
callback.onEntry() . |
void |
setModificationNotifier(EngineReplicationLangBytes.EngineReplicationModificationNotifier modificationNotifier)
the
modificationNotifier is called when ever there is a change applied to the
modification iterator |
boolean hasNext()
true
if the is another entry to be received via nextEntry(EngineReplicationLangBytes.EngineEntryCallback)
boolean nextEntry(@NotNull EngineReplicationLangBytes.EngineEntryCallback callback)
callback.onEntry()
.callback
- a callback which will be called when a new entry becomes available.true
if the entry was accepted by the callback.onEntry()
method,
false
if the entry was not accepted or was not availablevoid dirtyEntries(long fromTimeStamp)
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 dirtyvoid setModificationNotifier(@NotNull EngineReplicationLangBytes.EngineReplicationModificationNotifier 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.