setSnapshotTrigger

protected void setSnapshotTrigger(int snapshotTrigger)

Changes the number of events between making aggregate snapshots to the passed value.

The default value is defined in DEFAULT_SNAPSHOT_TRIGGER.

NOTE: repository read operations are optimized around the current snapshot trigger. Setting the snapshot trigger to a new value may cause read operations to perform suboptimally, until a new snapshot is created. This doesn't apply to newly created repositories.

Parameters

snapshotTrigger

a positive number of the snapshot trigger