Class OutboxRepository
java.lang.Object
one.tomorrow.transactionaloutbox.repository.OutboxRepository
@Repository
public class OutboxRepository
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description OutboxRepository(OutboxSessionFactory sessionFactory) -
Method Summary
Modifier and Type Method Description java.util.List<OutboxRecord>getUnprocessedRecords(int limit)Return all records that have not yet been processed (i.e.voidpersist(OutboxRecord record)voidupdate(OutboxRecord record)
-
Constructor Details
-
Method Details
-
persist
-
update
-
getUnprocessedRecords
Return all records that have not yet been processed (i.e. that do not have the "processed" timestamp set).- Parameters:
limit- the max number of records to return- Returns:
- the requested records, sorted by id ascending
-