Enum Class MessageInterest

java.lang.Object
java.lang.Enum<MessageInterest>
com.sportradar.unifiedodds.sdk.MessageInterest
All Implemented Interfaces:
Serializable, Comparable<MessageInterest>, java.lang.constant.Constable

public enum MessageInterest extends Enum<MessageInterest>
  • Enum Constant Details

    • LiveMessagesOnly

      public static final MessageInterest LiveMessagesOnly
      Interested in live-match messages only
    • PrematchMessagesOnly

      public static final MessageInterest PrematchMessagesOnly
      Interested in pre-match messages only
    • VirtualSports

      public static final MessageInterest VirtualSports
      Interested in virtual sports messages only
    • HiPrioMessagesOnly

      public static final MessageInterest HiPrioMessagesOnly
      Interested in hi priority messages only
    • LoPrioMessagesOnly

      public static final MessageInterest LoPrioMessagesOnly
      Interested in lo priority messages only
    • SpecifiedMatchesOnly

      public static final MessageInterest SpecifiedMatchesOnly
      Interested only in messages for specific matches
    • AllMessages

      public static final MessageInterest AllMessages
      Interested in all messages
    • SystemAliveMessages

      public static final MessageInterest SystemAliveMessages
      Interest for Alive messages (messages that indicate producers health status), sessions with this message interest do not dispatch any events.
  • Method Details

    • values

      public static MessageInterest[] 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

      public static MessageInterest valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isRoutingKeyStatic

      public boolean isRoutingKeyStatic()
      Gets a value indicating whether the routing key for current MessageInterest instance is static (does not change)
      Returns:
      a value indicating whether the routing key for current MessageInterest instance is static (does not change)
    • getRoutingKeys

      public List<String> getRoutingKeys()
      Gets the routing key(s) for the current MessageInterest instance or a null reference if routing key is not static
      Returns:
      the routing key(s) for the current MessageInterest instance or a null reference if routing key is not static
    • getPossibleSourceProducers

      public Set<Integer> getPossibleSourceProducers(Map<Integer,Producer> availableProducers)
      Returns the producer ids that generate this specific message interest
      Parameters:
      availableProducers - a list of available producers
      Returns:
      a lis of possible producers
    • isProducerInScope

      public boolean isProducerInScope(Producer producer)
      Returns an indication if the provided Producer is in the message interest scope
      Parameters:
      producer - the Producer that needs to be checked for the scope
      Returns:
      true if the producer is in scope, otherwise false
    • toShortString

      public String toShortString()