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 OutboxMessageEventContextCreates a newOutboxMessageEventContextReturns the inbound flagvoidsetIsInbound(boolean inbound) Sets the inbound flagvoidsetMessage(OutboxMessage message) Sets theOutboxMessagestored and again published by theOutboxServicevoidsetTimestamp(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, proceed, put, setCompleted
-
Method Details
-
create
Creates a newOutboxMessageEventContext- Parameters:
outboxEvent- the outbox event with which the message is stored and again published by theOutboxService- Returns:
- the
OutboxMessageEventContext
-
getIsInbound
Boolean getIsInbound()Returns the inbound flag- Returns:
trueif the message is again published by theOutboxServiceandfalseif the message should be stored.
-
setIsInbound
void setIsInbound(boolean inbound) Sets the inbound flag- Parameters:
inbound-trueif the message is again published by theOutboxServiceandfalseif 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
OutboxMessage getMessage()- Returns:
- the
OutboxMessagestored and again published by theOutboxService
-
setMessage
Sets theOutboxMessagestored and again published by theOutboxService- Parameters:
message- theOutboxMessage
-