Package com.sap.cds.services.outbox
Interface OutboxMessageEventContext
- All Superinterfaces:
EventContext
Describes the message stored and again published by the
OutboxService
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutboxMessageEventContext
Creates a newOutboxMessageEventContext
Returns the inbound flagvoid
setIsInbound
(boolean inbound) Sets the inbound flagvoid
setMessage
(String message) Sets the outbox message stored and again published by theOutboxService
void
setTimestamp
(Instant timestamp) Sets the timestamp when the message was stored in the outbox.Methods inherited from interface com.sap.cds.services.EventContext
as, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getService, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
-
Method Details
-
create
Creates a newOutboxMessageEventContext
- Parameters:
targetEvent
- the target event with which the message is stored and again published by theOutboxService
- Returns:
- the
OutboxMessageEventContext
-
getIsInbound
Boolean getIsInbound()Returns the inbound flag- Returns:
true
if the message is again published by theOutboxService
andfalse
if the message should be stored.
-
setIsInbound
void setIsInbound(boolean inbound) Sets the inbound flag- Parameters:
inbound
-true
if the message is again published by theOutboxService
andfalse
if the message should be stored.
-
getTimestamp
Instant getTimestamp()- Returns:
- the timestamp when the message was stored in the outbox
-
setTimestamp
Sets the timestamp when the message was stored in the outbox.- Parameters:
timestamp
- the timestamp
-
getMessage
String getMessage()- Returns:
- the outbox message stored and again published by the
OutboxService
-
setMessage
Sets the outbox message stored and again published by theOutboxService
- Parameters:
message
- the outbox message
-