Package com.sap.cds.services.outbox
Interface OutboxMessage
public interface OutboxMessage
extends com.sap.cds.CdsData
Represents the default structure of a message stored in the outbox and handled generically.
Additional information can be freely added to the underlying
Map
structure.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.CdsData
com.sap.cds.CdsData.Factory
-
Field Summary
Fields inherited from interface com.sap.cds.CdsData
factory
-
Method Summary
Modifier and TypeMethodDescriptionstatic OutboxMessage
create()
Creates a newOutboxMessage
getEvent()
void
Sets the original event, to be stored in the outboxvoid
Sets the event context parameters of the original eventMethods inherited from interface com.sap.cds.CdsData
containsPath, forRemoval, forRemoval, get, getPath, getPathOrDefault, isForRemoval, putPath, putPathIfAbsent, removePath
Methods inherited from interface com.sap.cds.JSONizable
toJson
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Field Details
-
EVENT
- See Also:
-
PARAMS
- See Also:
-
-
Method Details
-
create
Creates a newOutboxMessage
- Returns:
- the
OutboxMessage
-
getEvent
String getEvent()- Returns:
- the original event stored in the outbox
-
setEvent
Sets the original event, to be stored in the outbox- Parameters:
event
- the event
-
getParams
- Returns:
- the event context parameters of the original event
-
setParams
Sets the event context parameters of the original event- Parameters:
data
- the context parameters
-