protected bool Equals(SnapshotSelectionCriteria other) { return(MaxSequenceNr == other.MaxSequenceNr && MaxTimeStamp.Equals(other.MaxTimeStamp) && MinSequenceNr == other.MinSequenceNr && MinTimestamp.Equals(other.MinTimestamp)); }
public bool ShouldDelete(long lastSpanshotSaved, out SnapshotSelectionCriteria selection) { var seqNumToKeep = lastSpanshotSaved - _eventsToKeep; var seqNumDeleted = Math.Max(_tracker.GreatesDeletedNumber, _tracker.GreatestDeleteAttemtedNumber); if (seqNumToKeep > seqNumDeleted) { selection = new SnapshotSelectionCriteria(seqNumToKeep); return(true); } selection = SnapshotSelectionCriteria.Empty; return(false); }
public bool ShouldDelete(out SnapshotSelectionCriteria selection) { selection = SnapshotSelectionCriteria.Empty; return(false); }
public bool ShouldDelete(long lastSpanshotSaved, out SnapshotSelectionCriteria selection) { selection = SnapshotSelectionCriteria.Empty; return(false); }
public static Akka.Persistence.SnapshotSelectionCriteria ToGridDomain(this SnapshotSelectionCriteria c) { return(new Akka.Persistence.SnapshotSelectionCriteria(c.MaxSequenceNr, c.MaxTimeStamp, c.MinSequenceNr, c.MinTimestamp)); }