Class EventOutboxDao


public class EventOutboxDao extends AbstractDao
Provides a DAO for the EventOutbox entity.
Since:
22.10.0
  • Constructor Details

    • EventOutboxDao

      public EventOutboxDao()
  • Method Details

    • getEventOutboxForId

      public EventOutbox getEventOutboxForId(Long id)
      Return the EventOutbox entity for the given EventOutbox id.
      Parameters:
      id - the EventOutbox id (required)
      Returns:
      the EventOutbox entity for the given EventOutbox id
    • getEventListForProcessing

      public List<EventOutbox> getEventListForProcessing(int fetchLimit, int queueTimeout, int inProgressTimeout, int maxRetry)
      Return the list of EventOutbox entities which needs to be processed
      Parameters:
      fetchLimit - the maximum limit to limit the number of result objects.
      queueTimeout - the maximum time we expect an outbox event to be in Blocking Queue(in milliseconds).
      inProgressTimeout - the maximum time we expect an outbox event to be in progress status (waiting for process to be completed)(in milliseconds).
      maxRetry - the maxRetry to send outbox events
      Returns:
      the list of EventOutbox entities