Persistence Service: How to detect the reception of all stored samples?

1 post / 0 new
raz
Offline
Last seen: 4 years 7 months ago
Joined: 04/30/2019
Posts: 7
Persistence Service: How to detect the reception of all stored samples?

Hi everybody,

my application uses the Persistence Service to store samples of several topics. At startup it has to wait until all stored samples are received.

My first approach was to use one sample as some kind of "end marker sample" in combination with BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS.

If my application receives the "end marker sample" it knows that all samples have been received.

But it looks like the Persistence Service publishes all samples of each topic separately. So, BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS is not applied to all samples, as I thought, but for each topic separately and there is no guarantee of topic order.

Is this behavior configurable? Or is there a better way to detect the reception of all stored samples?

 

Thanks in advance.