# Interface EventCompactor

All Known Implementing Classes:
  `SlidingWindowEventCompactor, TailRetentionEventCompactor`

public interface EventCompactor
Base interface for compacting events.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `io.reactivex.rxjava3.core.Completable`
  `compact(Session session, BaseSessionService sessionService)`
  Compacts events in the given session.

- ## Method Details

  - ### compact

    io.reactivex.rxjava3.core.Completable compact(Session session, BaseSessionService sessionService)
    Compacts events in the given session. If there is compaction happened, the new compaction event will be appended to the given `BaseSessionService`.
    Parameters:
      `session` - the session containing the events to be compacted.
      `sessionService` - the session service for appending the new compaction event.
    Returns:
      the `Event` containing the events summary.