Interface LiveScoutDispatcher
-
- All Superinterfaces:
LiveFeedDispatcher<LiveScoutFeed>
- All Known Implementing Classes:
LiveScoutDisruptorDispatcher
public interface LiveScoutDispatcher extends LiveFeedDispatcher<LiveScoutFeed>
Represents a dispatcher used to dispatch live-scout related events to the user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispatchEntity(LiveScoutEntityBase entity)
Dispatches the passedLiveScoutEntityBase
to the uservoid
setFeed(LiveScoutFeed feed)
Set the feed.void
start(LiveScoutFeedListener listener)
Starts the currentLiveScoutDispatcher
void
stop()
Stops the currentLiveScoutDispatcher
and disposed any resources associated with it.-
Methods inherited from interface com.sportradar.livedata.sdk.dispatch.common.LiveFeedDispatcher
dispatchOnClosed, dispatchOnFeedEvent, dispatchOnInitialized, dispatchOnOpened
-
-
-
-
Method Detail
-
start
void start(LiveScoutFeedListener listener)
Starts the currentLiveScoutDispatcher
- Parameters:
listener
- TheLiveScoutFeedListener
used by the currentLiveScoutFeedListener
to dispatch events
-
stop
void stop()
Stops the currentLiveScoutDispatcher
and disposed any resources associated with it.
-
dispatchEntity
void dispatchEntity(LiveScoutEntityBase entity) throws com.lmax.disruptor.InsufficientCapacityException
Dispatches the passedLiveScoutEntityBase
to the user- Parameters:
entity
- theLiveScoutEntityBase
to dispatch to the user.- Throws:
com.lmax.disruptor.InsufficientCapacityException
- ring buffer is full.
-
setFeed
void setFeed(LiveScoutFeed feed)
Set the feed.- Parameters:
feed
- feed that will be served.
-
-