compact

abstract suspend fun compact(session: Session, sessionService: SessionService)

Compacts events in the given session. If compaction happened, the new compaction event will be appended to the given sessionService.

Parameters

session

The session containing the events to be compacted.

sessionService

The session service used to append the produced compaction event.