Iterate over a stream with EventStore.JVM


I’m trying to iterate over the events of a given stream using EventStore.JVM client.

Here I saw a nice example to retrieve the first event of a stream but how can iterate until all the events have been red?

Thanks for the help

I forgot to mention the link: