public override CheckpointTag MakeCheckpointTag( CheckpointTag previous, ReaderSubscriptionMessage.CommittedEventDistributed committedEvent) { if (previous.Phase != Phase) { throw new ArgumentException( string.Format("Invalid checkpoint tag phase. Expected: {0} Was: {1}", Phase, previous.Phase)); } return(CheckpointTag.FromPreparePosition(previous.Phase, committedEvent.Data.Position.PreparePosition)); }
public override CheckpointTag MakeZeroCheckpointTag() { return(CheckpointTag.FromPreparePosition(Phase, -1)); }
public override CheckpointTag MakeCheckpointTag( CheckpointTag previous, ReaderSubscriptionMessage.CommittedEventDistributed committedEvent) { return(CheckpointTag.FromPreparePosition(committedEvent.Data.Position.PreparePosition)); }