getEvents

suspend fun getEvents(limit: Int = Int.MAX_VALUE, afterEventId: String? = null): List<Event>

Retrieves all events stored in the current partition.

The returned list is sorted chronologically by the event's timestamp.

To enumerate a large set of events completely in manageable chunks, specify the desired limit to repeated getEvents calls and pass the last event ID from from the previously returned list as afterEventId.

Return

A chronological list of Events.

Parameters

limit

return at most this many events.

afterEventId

only return events after this event.