NewLineageOutboxProcessor creates a new outbox processor. Parameters: - ledgerforge *LedgerForge: The LedgerForge instance containing the datasource and processing logic. Returns: - *LineageOutboxProcessor: The configured processor.
(ledgerforge *LedgerForge)
| 48 | // Returns: |
| 49 | // - *LineageOutboxProcessor: The configured processor. |
| 50 | func NewLineageOutboxProcessor(ledgerforge *LedgerForge) *LineageOutboxProcessor { |
| 51 | return &LineageOutboxProcessor{ |
| 52 | ledgerforge: ledgerforge, |
| 53 | batchSize: 100, |
| 54 | pollInterval: 1 * time.Second, |
| 55 | lockDuration: 30 * time.Second, |
| 56 | stopCh: make(chan struct{}), |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // WithBatchSize sets the batch size for processing outbox entries. |
| 61 | // |
no outgoing calls