Class EntityEventHandler
- java.lang.Object
-
- com.sportradar.livedata.sdk.dispatch.livescout.EntityEventHandler
-
- All Implemented Interfaces:
com.lmax.disruptor.EventHandler<LiveScoutDispatcherContainer>
- Direct Known Subclasses:
LoggingEntityEventHandler
public abstract class EntityEventHandler extends Object implements com.lmax.disruptor.EventHandler<LiveScoutDispatcherContainer>
AEventHandler
implementation used to dispatch live-scout related entities to the user.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityEventHandler(int id, int dispatcherCount, LiveScoutFeedListener listener, LiveScoutFeed feed)
Initializes a new instance of theEntityEventHandler
class
-
Method Summary
-
-
-
Constructor Detail
-
EntityEventHandler
protected EntityEventHandler(int id, int dispatcherCount, LiveScoutFeedListener listener, LiveScoutFeed feed)
Initializes a new instance of theEntityEventHandler
class- Parameters:
id
- The id of the currentEntityEventHandler
used to determine which messages will be processed by the current instance.dispatcherCount
- The number ofEntityEventHandler
instances handling user eventslistener
- TheLiveScoutFeedListener
instance used to inform the user about incoming messagesfeed
- TheLiveScoutFeed
which will be passed to method calls on the user provided listener
-
-
Method Detail
-
onEvent
public void onEvent(LiveScoutDispatcherContainer entityContainer, long sequenceNumber, boolean isEndOfBatch)
Invoked by the disruptor when a message is ready to be processed by the current handler.- Specified by:
onEvent
in interfacecom.lmax.disruptor.EventHandler<LiveScoutDispatcherContainer>
- Parameters:
entityContainer
- TheJaxbLiveScoutEntityFactory
containing the information about the message to be raised.sequenceNumber
- The ring buffer's sequence number of the current item.isEndOfBatch
- Specifies whether the current item is the last of the available item batch.
-
dispatchLineups
protected void dispatchLineups(LineupsEntity entity)
-
dispatchMatchBooking
protected void dispatchMatchBooking(MatchBookingEntity entity)
-
dispatchMatchData
protected void dispatchMatchData(MatchDataEntity entity)
-
dispatchMatchList
protected void dispatchMatchList(MatchListEntity entity)
-
dispatchMatchListUpdate
protected void dispatchMatchListUpdate(MatchListUpdateEntity entity)
-
dispatchMatchStop
protected void dispatchMatchStop(MatchStopEntity entity)
-
dispatchMatchUpdate
protected void dispatchMatchUpdate(MatchUpdateEntity matchUpdate)
-
dispatchFullMatchUpdateReceived
protected void dispatchFullMatchUpdateReceived(MatchUpdateEntity matchUpdate)
-
dispatchFullPaginatedMatchUpdateReceived
protected void dispatchFullPaginatedMatchUpdateReceived(MatchUpdateEntity matchUpdate)
-
dispatchOnMatchDeltaUpdateDeltaReceived
protected void dispatchOnMatchDeltaUpdateDeltaReceived(MatchUpdateEntity matchUpdate)
-
dispatchOnMatchDeltaUpdateReceived
protected void dispatchOnMatchDeltaUpdateReceived(MatchUpdateEntity matchUpdate)
-
dispatchServerTime
protected void dispatchServerTime(ServerTimeEntity entity)
-
-