Class JpaIdempotentProcessingRepository
java.lang.Object
ch.admin.bit.jeap.messaging.idempotence.processing.jpa.JpaIdempotentProcessingRepository
- All Implemented Interfaces:
IdempotentProcessingRepository
public class JpaIdempotentProcessingRepository
extends Object
implements IdempotentProcessingRepository
-
Constructor Summary
ConstructorsConstructorDescriptionJpaIdempotentProcessingRepository(SpringDataJpaIdempotentProcessingRepository springDataRepository) -
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.
-
Constructor Details
-
JpaIdempotentProcessingRepository
public JpaIdempotentProcessingRepository(SpringDataJpaIdempotentProcessingRepository springDataRepository)
-
-
Method Details
-
createIfNotExists
Description copied from interface:IdempotentProcessingRepositoryCreate a new idempotent processing record with the given identity if no such record already exists.- Specified by:
createIfNotExistsin interfaceIdempotentProcessingRepository- Parameters:
id- The idempotent processing id- Returns:
trueif a new idempotent processing record has been created,falseotherwise.
-
deleteAllCreatedBefore
Description copied from interface:IdempotentProcessingRepositoryDelete all idempotent processing records that have been created before the given point in time.- Specified by:
deleteAllCreatedBeforein interfaceIdempotentProcessingRepository- Parameters:
createdBefore- Messages created before this point in time will be deleted.- Returns:
- The number of records deleted.
-