Skip to content

Commit

Permalink
revert binary incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-git committed Nov 1, 2024
1 parent 4380da6 commit 9e890b1
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ trait Journal[F[_]] {

/**
* Deletes events up to provided SeqNr
* Using default value `DeleteTo.max` is not recommended: `Delete` action is valid for starting new journal and
* the `DeleteTo.max` would produce dead-en journal - there will be no way to add new events.
*/
def delete(to: DeleteTo): F[Option[PartitionOffset]]
// TODO next major release - remove default value
def delete(to: DeleteTo = DeleteTo.max): F[Option[PartitionOffset]]

/**
* Deletes all data with regards to key, consecutive pointer call will return none
* Deletes all data (resets storage, removes all events and all traces of this journal) for the key,
* consecutive pointer call will return `None`.
* Mostly used by [[PurgeExpired]].
*/
def purge: F[Option[PartitionOffset]]
}
Expand Down

0 comments on commit 9e890b1

Please sign in to comment.