Interface OutboxMessage

All Superinterfaces:
com.sap.cds.CdsData, com.sap.cds.JSONizable, Map<String,Object>

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.
  • Field Details

  • Method Details

    • create

      static OutboxMessage create()
      Creates a new OutboxMessage
      Returns:
      the OutboxMessage
    • getEvent

      String getEvent()
      Returns:
      the original event stored in the outbox
    • setEvent

      void setEvent(String event)
      Sets the original event, to be stored in the outbox
      Parameters:
      event - the event
    • getEntity

      String getEntity()
      Returns:
      the name of the entity that the event is related to
    • setEntity

      void setEntity(String entity)
      Sets the name of the entity that the event is related to
      Parameters:
      entity - the entity name
    • getParams

      Map<String,Object> getParams()
      Returns:
      the event context parameters of the original event
    • setParams

      void setParams(Map<String,Object> data)
      Sets the event context parameters of the original event
      Parameters:
      data - the context parameters
    • getStoredRequestContext

      StoredRequestContext getStoredRequestContext()
      Returns:
      the request context information stored in the outbox
    • setStoredRequestContext

      void setStoredRequestContext(StoredRequestContext storedRequestContext)
      Sets the request context information, to be stored in the outbox. The values stored in this map are used to restore the request context when the outbox message is published.
      Parameters:
      storedRequestContext - the request context information to be stored in the outbox