Interface | Description |
---|---|
DeltaEventHandler<M extends IBetMatch,E extends IBetEvent,R extends IBetRecord> |
DeltaEventHandler handles delta snapshots.The function that will be triggered first is onFullSnapshotStart().The onFullSnapshotStart() indicates that this is the begining of the full snapshot.The following message will be the onInsertMatch and the very first onInsertMatch will contain the events and odds in the INSERT_MATCH message.Subsequently will receive onInsertEvent message followed by onInsertOdd.The onFullSnapshotEnd() indicates that the full snapshot is received completely.
For Match Insertion in sequence will be: 1.onInsertMatch 2.onInsertEvent (insert event always appear before a child insert odd msg) 3.onInsertOdd For Match Deletion in sequence will be: 1.onDeleteOdd (an odd always be deleted before the parent event is removed) 2.onDeleteEvent 3.onDeleteMatch Implement this interface to call methods whenever there is change is snapshot data |
Class | Description |
---|---|
DeleteEvent<E extends IBetEvent> |
This class is used when events are deleted in snapshot.
|
DeleteMatch<M extends IBetMatch> |
This class is used when matches are deleted in snapshot.
|
DeleteOdd<R extends IBetRecord> |
This class is used when odds are deleted in snapshot.
|
FeedView<M extends IBetMatch> |
Views perform filtering on feed data.
|
InsertEvent<E extends IBetEvent> |
This class is used when events are inserted in snapshot.
|
InsertMatch<M extends IBetMatch> |
This class is used when matches are inserted in snapshot.
|
InsertOdd<R extends IBetRecord> |
This class is used when odds are inserted in snapshot.
|
Reset |
This class is used when all data to a the partition key is cleared
|
SportsConfig |
A sports feed client side config to be loaded by SportsFeedFactory to create a client instance
|
SportsFeedClient |
SportsFeedClient is created by SportsFeedFactory to consume Feed with loaded configurations
|
SportsFeedFactory |
SportsFeedFactory creates new instances of SportsFeedClient.
This factory is a stateless object which can be intialized normally or injected via Guice. This factory provides 4 different instantiation methods |
UpdateEvent<E extends IBetEvent> |
This class is used when events are updated in snapshot.
|
UpdateMatch<M extends IBetMatch> |
This class is used when matches are updated in snapshot.
|
UpdateOdd<R extends IBetRecord> |
This class is used when records are updated in snapshot.
|