RTC Java api always checking for new snapshots on a stream
One answer
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.setOwnerWorkspaceOptional(streamICareAbout);
baselineSetSearchCriteria.setModifiedAfterOptional(date); // This is optional
List snapshotHandles = workspaceManager.findBaselineSets(baselineSetSearchCriteria, max, monitor);