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.
    void persist​(OutboxRecord record)  
    void update​(OutboxRecord record)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • persist

      public void persist​(OutboxRecord record)
    • update

      @Transactional public void update​(OutboxRecord record)
    • getUnprocessedRecords

      @Transactional public java.util.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