Interface IdempotentProcessingRepository

All Known Implementing Classes:
JpaIdempotentProcessingRepository

public interface IdempotentProcessingRepository
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Create a new idempotent processing record with the given identity if no such record already exists.
    int
    Delete all idempotent processing records that have been created before the given point in time.
  • Method Details

    • createIfNotExists

      boolean createIfNotExists(IdempotentProcessingIdentity id)
      Create a new idempotent processing record with the given identity if no such record already exists.
      Parameters:
      id - The idempotent processing id
      Returns:
      true if a new idempotent processing record has been created, false otherwise.
    • deleteAllCreatedBefore

      int deleteAllCreatedBefore(ZonedDateTime createdBefore)
      Delete all idempotent processing records that have been created before the given point in time.
      Parameters:
      createdBefore - Messages created before this point in time will be deleted.
      Returns:
      The number of records deleted.