public interface SnapshotEventProvider
SnapshotEventProvider interface should be implemented by any
Event Producer that wants to support snapshot events feature. The
class must define a method getSnapshot.| Modifier and Type | Interface and Description |
|---|---|
static class |
SnapshotEventProvider.Snapshot |
| Modifier and Type | Method and Description |
|---|---|
List<SnapshotEventProvider.Snapshot> |
getSnapshot(String eventType,
Object withIdGreaterThan)
Returns a batch of snapshots of given type (event type is an event channel topic name).
|
Set<String> |
getSupportedEventTypes() |
List<SnapshotEventProvider.Snapshot> getSnapshot(String eventType, Object withIdGreaterThan)
eventType - event type to make a snapshot ofwithIdGreaterThan - if not null, only events for entities with an id greater than the given one must be returnedUnknownEventTypeException - if eventType is unknownCopyright © 2017 Pivotal Software, Inc.. All rights reserved.