Class OutboxUtils

java.lang.Object
com.sap.cds.services.utils.outbox.OutboxUtils

public class OutboxUtils extends Object
  • Field Details

  • Constructor Details

    • OutboxUtils

      public OutboxUtils()
  • Method Details

    • hasOutboxModel

      public static boolean hasOutboxModel(com.sap.cds.reflect.CdsModel model)
      Determines whether the outbox model is available.
      Parameters:
      model - CDS model
      Returns:
      true if outbox model is available and false otherwise.
    • chooseOutboxService

      public static OutboxService chooseOutboxService(CdsRuntime runtime, boolean allowPersistentOutbox)
      Determines the available outbox. Persistent outbox is preferred but if not available the in-memory is returned.
      Parameters:
      runtime - the CdsRuntime
      Returns:
      available outbox