Package io.github.bluegroundltd.outbox.event

Types

InstantOutboxEvent
Link copied to clipboard
class InstantOutboxEvent(outbox: OutboxItem)

Event emitted upon the addition of an instant outbox.

InstantOutboxPublisher
Link copied to clipboard
interface InstantOutboxPublisher

The publisher will emit an event upon the creation of the instant outbox. Having an event emitted upon the outbox creation enables us handle an instant outbox processing in separate transactions. We can listen for the published event after transaction is committed, and then we can process the outbox by calling TransactionalOutbox.processInstantOutbox.