It's all about the answers!

Ask a question

RTC Java api always checking for new snapshots on a stream

Raj Kumar (2110) | asked Aug 05 '19, 1:34 a.m.

I want to check for new snapshot(last fresh snapshot) for given stream using java api.

Any code example would be great.


One answer

permanent link
David Lafreniere (4.8k7) | answered Aug 09 '19, 3:35 p.m.
There is no API to find the 'last' snapshot of a workspace/stream... this question doesn't make as much sense as the owner of the snapshot can be changed.

You can still find snapshots owned by a workspace/stream though.
See the following client-side API:
IBaselineSetSearchCriteria baselineSetSearchCriteria = IBaselineSetSearchCriteria.FACTORY.newInstance();
baselineSetSearchCriteria.setModifiedAfterOptional(date); // This is optional

List snapshotHandles = workspaceManager.findBaselineSets(baselineSetSearchCriteria, max, monitor);

Your answer

Register or to post your answer.