add
abstract fun add(type: OutboxType, payload: OutboxPayload, shouldPublishAfterInsertion: Boolean = false)
Content copied to clipboard
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
should Publish After Insertion
flag that indicates if and event should be published to indicate that the created outbox should be processes immediately.