Class OutboxRepository

java.lang.Object
one.tomorrow.transactionaloutbox.repository.OutboxRepository

@Repository public class OutboxRepository extends Object
  • Constructor Details

    • OutboxRepository

      public OutboxRepository()
  • Method Details

    • persist

      public void persist(OutboxRecord record)
    • update

      @Transactional public void update(OutboxRecord record)
    • getUnprocessedRecords

      @Transactional public List<OutboxRecord> getUnprocessedRecords(int limit)
      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