Interface LiveScoutDispatcher
- All Superinterfaces:
LiveFeedDispatcher<LiveScoutFeed>
- All Known Implementing Classes:
LiveScoutDisruptorDispatcher
Represents a dispatcher used to dispatch live-scout related events to the user.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchEntity(LiveScoutEntityBase entity) Dispatches the passedLiveScoutEntityBaseto the uservoidsetFeed(LiveScoutFeed feed) Set the feed.voidstart(LiveScoutFeedListener listener) Starts the currentLiveScoutDispatchervoidstop()Stops the currentLiveScoutDispatcherand disposed any resources associated with it.Methods inherited from interface com.sportradar.livedata.sdk.dispatch.common.LiveFeedDispatcher
dispatchOnClosed, dispatchOnFeedEvent, dispatchOnInitialized, dispatchOnOpened
-
Method Details
-
start
Starts the currentLiveScoutDispatcher- Parameters:
listener- TheLiveScoutFeedListenerused by the currentLiveScoutFeedListenerto dispatch events
-
stop
void stop()Stops the currentLiveScoutDispatcherand disposed any resources associated with it. -
dispatchEntity
void dispatchEntity(LiveScoutEntityBase entity) throws com.lmax.disruptor.InsufficientCapacityException Dispatches the passedLiveScoutEntityBaseto the user- Parameters:
entity- theLiveScoutEntityBaseto dispatch to the user.- Throws:
com.lmax.disruptor.InsufficientCapacityException- ring buffer is full.
-
setFeed
Set the feed.- Parameters:
feed- feed that will be served.
-