add
abstract fun add(type: OutboxType, payload: OutboxPayload, shouldPublishAfterInsertion: Boolean = false)
Adds an outbox with will be processed on scheduled manner.
Parameters
type
the type of the outbox item
payload
the payload of the outbox item
shouldPublishAfterInsertion
flag that indicates if and event should be published to indicate that the created outbox should be processes immediately.