Class OutboxUtils
java.lang.Object
com.sap.cds.services.utils.outbox.OutboxUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OutboxServicechooseOutboxService(CdsRuntime runtime, boolean allowPersistentOutbox) Determines the available outbox.static booleanhasOutboxModel(com.sap.cds.reflect.CdsModel model) Determines whether the outbox model is available.
-
Field Details
-
OUTBOX_MODEL
- See Also:
-
-
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:
trueif outbox model is available andfalseotherwise.
-
chooseOutboxService
Determines the available outbox. Persistent outbox is preferred but if not available the in-memory is returned.- Parameters:
runtime- theCdsRuntime- Returns:
- available outbox
-