Class SnapshotCreationService


  • public class SnapshotCreationService
    extends Object
    • Constructor Detail

      • SnapshotCreationService

        public SnapshotCreationService​(List<SnapshotEventGenerator> snapshotEventGenerators,
                                       EventLogWriter eventLogWriter)
        Creates the service.
        Parameters:
        snapshotEventGenerators - the event generators. Each of them must have a different supported event type.
        eventLogWriter - The event log writer to which the newly generated snapshot events are pushed.
        Throws:
        IllegalStateException - if two event generators declare to be responsible for the same event type.
    • Method Detail

      • createSnapshotEvents

        public void createSnapshotEvents​(String eventType,
                                         String filter)
      • getSupportedEventTypes

        public Set<String> getSupportedEventTypes()