Class PartitionCollector
java.lang.Object
com.sap.cds.services.impl.outbox.persistence.collectors.PartitionCollector
- All Implemented Interfaces:
OutboxCollector,Runnable
Outbox collector implementation for a specific outbox partition.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionCollector(CdsRuntime runtime, PersistentOutbox outboxService, CdsProperties.Outbox.OutboxServiceConfig config, String appVersion, Supplier<List<String>> tenantSupplier, TelemetryData telemetryData) -
Method Summary
-
Constructor Details
-
PartitionCollector
public PartitionCollector(CdsRuntime runtime, PersistentOutbox outboxService, CdsProperties.Outbox.OutboxServiceConfig config, String appVersion, Supplier<List<String>> tenantSupplier, TelemetryData telemetryData)
-
-
Method Details
-
run
public void run() -
start
public void start()Description copied from interface:OutboxCollectorStarts the collector- Specified by:
startin interfaceOutboxCollector
-
stop
Description copied from interface:OutboxCollectorStops the collector- Specified by:
stopin interfaceOutboxCollector- Parameters:
waitMillis- millis to wait for a stopped collector.- Throws:
InterruptedException
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceOutboxCollector- Returns:
- true, if the collector is currently running
-
schedule
Description copied from interface:OutboxCollectorSchedules the collector execution for the given tenant- Specified by:
schedulein interfaceOutboxCollector- Parameters:
tenant- the tenantdelay- the delay in milliswithEmptyCheck- checks if empty before scheduling
-
unpause
public void unpause()
-