getMaxPersistedEvents

Sets the maximum number of persisted events which will be stored. Once the threshold is reached, the oldest event will be deleted. By default, 32 events are persisted.