Published data in OpenSplice remains ‘stored in the shared-memory’ until there’s no usage for it anymore. This ‘usage’ can be identified as
- If it is part of a writer’s history on the sample that is awaiting transferring to local subscribers and/or sending over the network,
- If it is part of the ‘transient/persistent’ data-storage on a node made available for late-joining subscribers
- If it is part of the dataReader cache of a subscriber.
If a developer wants to be certain that his dataWriter history is empty they can utilize the wait_for_acknowledgement() method in the API.
To assure that non-volatile data is removed from the transient/persistent data-storage a writer has to dispose its instances and/or use our extended dispose_all() method to dispose of all instances of a specific topic.