Class PersistentOutbox
java.lang.Object
com.sap.cds.services.ServiceDelegator
com.sap.cds.services.impl.outbox.AbstractOutboxService
com.sap.cds.services.impl.outbox.persistence.PersistentOutbox
- All Implemented Interfaces:
OutboxService,Service
-
Field Summary
FieldsFields inherited from interface com.sap.cds.services.outbox.OutboxService
INMEMORY_NAME, PERSISTENT_ORDERED_NAME, PERSISTENT_UNORDERED_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPersistentOutbox(String name, CdsProperties.Outbox.OutboxServiceConfig config, CdsRuntime runtime, Supplier<List<String>> tenantSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidstart()voidstop()voidstop(long millis) protected voidsubmit(OutboxMessageEventContext context) Stores the outbox message in the outbox, to be retrieved for later publishing.Methods inherited from class com.sap.cds.services.impl.outbox.AbstractOutboxService
outboxed, outboxed, submitMethods inherited from class com.sap.cds.services.ServiceDelegator
after, before, emit, getDelegatedService, getName, on
-
Field Details
-
ATTR_EVENT
- See Also:
-
ATTR_MESSAGE
- See Also:
-
ATTR_VERSION
- See Also:
-
-
Constructor Details
-
PersistentOutbox
public PersistentOutbox(String name, CdsProperties.Outbox.OutboxServiceConfig config, CdsRuntime runtime, Supplier<List<String>> tenantSupplier)
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
stop
- Throws:
InterruptedException
-
isCollectorRunning
public boolean isCollectorRunning() -
submit
Description copied from class:AbstractOutboxServiceStores the outbox message in the outbox, to be retrieved for later publishing.- Specified by:
submitin classAbstractOutboxService- Parameters:
context- theOutboxMessageEventContext
-