Class SnapshotCreationService
- java.lang.Object
-
- org.zalando.nakadiproducer.snapshots.impl.SnapshotCreationService
-
public class SnapshotCreationService extends Object
-
-
Constructor Summary
Constructors Constructor Description SnapshotCreationService(List<SnapshotEventGenerator> snapshotEventGenerators, EventLogWriter eventLogWriter)Creates the service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateSnapshotEvents(String eventType, String filter)Set<String>getSupportedEventTypes()
-
-
-
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.
-
-