Package com.sportradar.unifiedodds.sdk
Enum Class MessageInterest
- All Implemented Interfaces:
Serializable,Comparable<MessageInterest>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInterested in all messagesInterested in hi priority messages onlyInterested in live-match messages onlyInterested in lo priority messages onlyInterested in pre-match messages onlyInterested only in messages for specific matchesInterest for Alive messages (messages that indicate producers health status), sessions with this message interest do not dispatch any events.Interested in virtual sports messages only -
Method Summary
Modifier and TypeMethodDescriptiongetPossibleSourceProducers(Map<Integer, Producer> availableProducers) Returns the producer ids that generate this specific message interestGets the routing key(s) for the currentMessageInterestinstance or a null reference if routing key is not staticbooleanisProducerInScope(Producer producer) Returns an indication if the providedProduceris in the message interest scopebooleanGets a value indicating whether the routing key for currentMessageInterestinstance is static (does not change)static MessageInterestReturns the enum constant of this class with the specified name.static MessageInterest[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LiveMessagesOnly
Interested in live-match messages only -
PrematchMessagesOnly
Interested in pre-match messages only -
VirtualSports
Interested in virtual sports messages only -
HiPrioMessagesOnly
Interested in hi priority messages only -
LoPrioMessagesOnly
Interested in lo priority messages only -
SpecifiedMatchesOnly
Interested only in messages for specific matches -
AllMessages
Interested in all messages -
SystemAliveMessages
Interest for Alive messages (messages that indicate producers health status), sessions with this message interest do not dispatch any events.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isRoutingKeyStatic
public boolean isRoutingKeyStatic()Gets a value indicating whether the routing key for currentMessageInterestinstance is static (does not change)- Returns:
- a value indicating whether the routing key for current
MessageInterestinstance is static (does not change)
-
getRoutingKeys
Gets the routing key(s) for the currentMessageInterestinstance or a null reference if routing key is not static- Returns:
- the routing key(s) for the current
MessageInterestinstance or a null reference if routing key is not static
-
getPossibleSourceProducers
Returns the producer ids that generate this specific message interest- Parameters:
availableProducers- a list of available producers- Returns:
- a lis of possible producers
-
isProducerInScope
Returns an indication if the providedProduceris in the message interest scope- Parameters:
producer- theProducerthat needs to be checked for the scope- Returns:
trueif the producer is in scope, otherwisefalse
-
toShortString
-