public class ProducerManagerImpl extends Object implements SdkProducerManager
| Constructor and Description | 
|---|
ProducerManagerImpl(SdkInternalConfiguration configuration,
                   ProducerDataProvider producerDataProvider,
                   TimeUtils time)  | 
| Modifier 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 | 
long | 
getProducerLastRecoveryAttemptTimestamp(int producerId)  | 
long | 
getProducerLastRecoveryMessageTimestamp(int producerId)  | 
void | 
internalSetProducerLastMessageTimestamp(int producerId,
                                       long lastMessageTimestamp)  | 
void | 
internalSetProducerLastRecoveryAttemptTimestamp(int producerId,
                                               long lastRecoveryAttemptTimestamp)  | 
void | 
internalSetProducerLastRecoveryMessageTimestamp(int producerId,
                                               long lastRecoveryMessageTimestamp)  | 
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 | 
open()  | 
void | 
setLastAliveReceivedGenTimestamp(int producerId,
                                long aliveReceivedGenTimestamp)  | 
void | 
setLastProcessedMessageGenTimestamp(int producerId,
                                   long lastProcessedMessageGenTimestamp)  | 
void | 
setProducerDown(int producerId,
               boolean flaggedDown)  | 
void | 
setProducerRecoveryFromTimestamp(int producerId,
                                long lastMessageTimestamp)
Sets the last message received timestamp. 
 | 
void | 
setProducerRecoveryInfo(int producerId,
                       RecoveryInfo recoveryInfo)  | 
@Inject public ProducerManagerImpl(SdkInternalConfiguration configuration, ProducerDataProvider producerDataProvider, TimeUtils time)
public Map<Integer,Producer> getAvailableProducers()
ProducerManagerMap of all the available Sportradar producersgetAvailableProducers in interface ProducerManagerMap of all the available Sportradar producerspublic Map<Integer,Producer> getActiveProducers()
ProducerManagerMap of activated producers for the provided access tokengetActiveProducers in interface ProducerManagerMap of active producers for the provided access tokenpublic Producer getProducer(int id)
ProducerManagerProducergetProducer in interface ProducerManagerid - - the unique identifier of a ProducerProducer instance; otherwise unknown-producer is generatedpublic void enableProducer(int producerId)
ProducerManagerProducer associated with the provided id
 (by default all the active producers are enabled)enableProducer in interface ProducerManagerproducerId - - the identifier of the producer that you want to enablepublic void disableProducer(int producerId)
ProducerManagerProducer associated with the provided id
 (by default all the active producers are enabled)disableProducer in interface ProducerManagerproducerId - - the identifier of the producer that you want to disablepublic void setProducerRecoveryFromTimestamp(int producerId,
                                             long lastMessageTimestamp)
ProducerManagerProducer.getTimestampForRecovery()setProducerRecoveryFromTimestamp in interface ProducerManagerproducerId - - 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)public boolean isProducerEnabled(int producerId)
ProducerManagerisProducerEnabled in interface ProducerManagerproducerId - - the identifier of the producer for which to checktrue if the producer is enabled, otherwise falsepublic boolean isProducerDown(int producerId)
ProducerManagerisProducerDown in interface ProducerManagerproducerId - - the identifier of the producer for which to checktrue if the producer is down, otherwise falseProducerDownReasonpublic void open()
open in interface SdkProducerManagerpublic void setProducerDown(int producerId,
                            boolean flaggedDown)
setProducerDown in interface SdkProducerManagerpublic void internalSetProducerLastMessageTimestamp(int producerId,
                                                    long lastMessageTimestamp)
internalSetProducerLastMessageTimestamp in interface SdkProducerManagerpublic void internalSetProducerLastRecoveryMessageTimestamp(int producerId,
                                                            long lastRecoveryMessageTimestamp)
internalSetProducerLastRecoveryMessageTimestamp in interface SdkProducerManagerpublic void setLastProcessedMessageGenTimestamp(int producerId,
                                                long lastProcessedMessageGenTimestamp)
setLastProcessedMessageGenTimestamp in interface SdkProducerManagerpublic void setLastAliveReceivedGenTimestamp(int producerId,
                                             long aliveReceivedGenTimestamp)
setLastAliveReceivedGenTimestamp in interface SdkProducerManagerpublic void setProducerRecoveryInfo(int producerId,
                                    RecoveryInfo recoveryInfo)
setProducerRecoveryInfo in interface SdkProducerManagerpublic long getProducerLastRecoveryMessageTimestamp(int producerId)
getProducerLastRecoveryMessageTimestamp in interface SdkProducerManagerpublic void internalSetProducerLastRecoveryAttemptTimestamp(int producerId,
                                                            long lastRecoveryAttemptTimestamp)
internalSetProducerLastRecoveryAttemptTimestamp in interface SdkProducerManagerpublic long getProducerLastRecoveryAttemptTimestamp(int producerId)
getProducerLastRecoveryAttemptTimestamp in interface SdkProducerManagerCopyright © 2016–2025. All rights reserved.