mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Remove Replica.EntryCallback.onBeforeEntry() and Replica.EntryCallback.onAfterEntry() methods as unused
This commit is contained in:
@@ -185,20 +185,6 @@ public interface Replica extends Closeable {
|
||||
*/
|
||||
public abstract boolean onEntry(
|
||||
ReplicableEntry entry, Bytes payload, int chronicleId, long bootstrapTime);
|
||||
|
||||
/**
|
||||
* Called just after {@link #onEntry(ReplicableEntry, Bytes, int, long)}.
|
||||
* No-op by default.
|
||||
*/
|
||||
public void onAfterEntry() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called just before {@link #onEntry(ReplicableEntry, Bytes, int, long)}.
|
||||
* No-op by default.
|
||||
*/
|
||||
public void onBeforeEntry() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -706,8 +706,6 @@ public class ReplicatedChronicleMap<K, V, R> extends VanillaChronicleMap<K, V, R
|
||||
|
||||
if (changesForUpdatesGet(position)) {
|
||||
|
||||
entryCallback.onBeforeEntry();
|
||||
|
||||
final long segmentPos = position & posMask;
|
||||
context.readExistingEntry(segmentPos);
|
||||
|
||||
@@ -716,7 +714,6 @@ public class ReplicatedChronicleMap<K, V, R> extends VanillaChronicleMap<K, V, R
|
||||
boolean success = entryCallback.onEntry(
|
||||
(ReplicableEntry) context.entryForIteration(), null,
|
||||
chronicleId, bootStrapTimeStamp());
|
||||
entryCallback.onAfterEntry();
|
||||
|
||||
if (success)
|
||||
changesForUpdatesClear(position);
|
||||
|
||||
Reference in New Issue
Block a user