Interface IdempotentProcessingRepository
- All Known Implementing Classes:
JpaIdempotentProcessingRepository
public interface IdempotentProcessingRepository
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate a new idempotent processing record with the given identity if no such record already exists.intdeleteAllCreatedBefore(ZonedDateTime createdBefore) Delete all idempotent processing records that have been created before the given point in time.
-
Method Details
-
createIfNotExists
Create a new idempotent processing record with the given identity if no such record already exists.- Parameters:
id- The idempotent processing id- Returns:
trueif a new idempotent processing record has been created,falseotherwise.
-
deleteAllCreatedBefore
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.
-