Constructor and Description |
---|
Replica.EntryCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onAfterEntry()
Called just after
onEntry(Bytes, int, long) . |
void |
onBeforeEntry()
Called just before
onEntry(Bytes, int, long) . |
abstract boolean |
onEntry(Bytes entry,
int chronicleId,
long bootStrapTimeStamp)
Called whenever a put() or remove() has occurred to a replicating map.
|
abstract boolean |
shouldBeIgnored(Bytes entry,
int chronicleId)
its possible that the entry should now be ignored, for example although rare its
identifier may have recently been changed by another thread, so its no longer applicable
to send
|
public abstract boolean onEntry(@NotNull Bytes entry, int chronicleId, long bootStrapTimeStamp)
entry
- the entry you will receive, this does not have to be locked, as
locking is already provided from the caller.chronicleId
- only assigned when clusteringbootStrapTimeStamp
- sent to the client on every update this is the timestamp that
the remote client should bootstrap from when there has been a
disconnection, this time maybe later than the message time as
event are not send in chronological order from the bit set.false
if this entry should be ignored because the identifier of the
source node is not from one of our changes, WARNING even though we check the identifier
in the ModificationIterator the entry may have been updated.public void onAfterEntry()
onEntry(Bytes, int, long)
. No-op by default.public void onBeforeEntry()
onEntry(Bytes, int, long)
. No-op by default.public abstract boolean shouldBeIgnored(Bytes entry, int chronicleId)
entry
- the entry you will receive, this does not have to be locked, as
locking is already provided from the caller.chronicleId
- only assigned when clusteringtrue
if this entry should be ignoredCopyright © 2017. All rights reserved.