Package com.sap.cds.services.outbox
Interface OutboxService
- All Superinterfaces:
Service
Defines the outbox service API. The outbox can be used to couple emitting of
events on a service to the currently active transaction.
The following applies when using the outbox:
- The outbox message is stored in the outbox.
- If the transaction fails, the outbox message is not stored in the outbox and is never emitted.
- A persisted outbox message is emitted eventually (asynchronously or synchronously, depending on the outbox implementation)
-
Field Details
-
IS_OUTBOXED
- See Also:
-
PERSISTENT_NAME
- See Also:
-
INMEMORY_NAME
- See Also:
-
-
Method Details
-
enroll
Stores the given message under the given target event in the outbox.- Parameters:
targetEvent
- the target event with which the message is stored and again published by theOutboxService
message
- the outbox message stored and again published by theOutboxService
-