I would like to keep track of the creation date and time of a stream on the server. Is there a way to get this from the Stream class?
For example, I am creating a new stream using the following:
I would like to then keep track of "stale" streams - meaning streams that have unintentionally remained on the server but need to be destroyed. Specifically, I would like to iterate through all stream objects on the server that are at least 2 weeks old and destroy them.
Stream stream = Stream.createInstance(app, streamName);