public interface ProducerManager
ProducerManager
is used to manage Sportradar message producersModifier and Type | Method and Description |
---|---|
void |
disableProducer(int producerId)
Disables te
Producer associated with the provided id
(by default all the active producers are enabled) |
void |
enableProducer(int producerId)
Enables te
Producer associated with the provided id
(by default all the active producers are enabled) |
Map<Integer,Producer> |
getActiveProducers()
Returns a
Map of activated producers for the provided access token |
Map<Integer,Producer> |
getAvailableProducers()
Returns a
Map of all the available Sportradar producers |
Producer |
getProducer(int id)
Returns the requested
Producer |
boolean |
isProducerDown(int producerId)
An indication if the producer is currently marked as down by the SDK
|
boolean |
isProducerEnabled(int producerId)
An indication if the producer is enabled.
|
void |
setProducerRecoveryFromTimestamp(int producerId,
long lastMessageTimestamp)
Sets the last message received timestamp.
|
Map<Integer,Producer> getAvailableProducers()
Map
of all the available Sportradar producersMap
of all the available Sportradar producersMap<Integer,Producer> getActiveProducers()
Map
of activated producers for the provided access tokenMap
of active producers for the provided access tokenvoid enableProducer(int producerId)
Producer
associated with the provided id
(by default all the active producers are enabled)producerId
- - the identifier of the producer that you want to enablevoid disableProducer(int producerId)
Producer
associated with the provided id
(by default all the active producers are enabled)producerId
- - the identifier of the producer that you want to disablevoid setProducerRecoveryFromTimestamp(int producerId, long lastMessageTimestamp)
Producer.getTimestampForRecovery()
producerId
- - the identifier of the producer to which the last known message timestamp belongs toolastMessageTimestamp
- - the timestamp from which the SDK will request the recovery (in milliseconds)boolean isProducerEnabled(int producerId)
producerId
- - the identifier of the producer for which to checktrue
if the producer is enabled, otherwise false
boolean isProducerDown(int producerId)
producerId
- - the identifier of the producer for which to checktrue
if the producer is down, otherwise false
ProducerDownReason
Copyright © 2016–2025. All rights reserved.