public enum MessageInterest extends Enum<MessageInterest>
| Enum Constant and Description | 
|---|
AllMessages
Interested in all messages 
 | 
HiPrioMessagesOnly
Interested in hi priority messages only 
 | 
LiveMessagesOnly
Interested in live-match messages only 
 | 
LoPrioMessagesOnly
Interested in lo priority messages only 
 | 
PrematchMessagesOnly
Interested in pre-match messages only 
 | 
SpecifiedMatchesOnly
Interested only in messages for specific matches 
 | 
SystemAliveMessages
Interest for Alive messages (messages that indicate producers health status),
 sessions with this message interest do not dispatch any events. 
 | 
VirtualSports
Interested in virtual sports messages only 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Integer> | 
getPossibleSourceProducers(Map<Integer,Producer> availableProducers)
Returns the producer ids that generate this specific message interest 
 | 
List<String> | 
getRoutingKeys()
Gets the routing key(s) for the current  
MessageInterest instance or a null reference if
 routing key is not static | 
boolean | 
isProducerInScope(Producer producer)
Returns an indication if the provided  
Producer is in the message interest scope | 
boolean | 
isRoutingKeyStatic()
Gets a value indicating whether the routing key for current  
MessageInterest instance
 is static (does not change) | 
String | 
toShortString()  | 
static MessageInterest | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static MessageInterest[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final MessageInterest LiveMessagesOnly
public static final MessageInterest PrematchMessagesOnly
public static final MessageInterest VirtualSports
public static final MessageInterest HiPrioMessagesOnly
public static final MessageInterest LoPrioMessagesOnly
public static final MessageInterest SpecifiedMatchesOnly
public static final MessageInterest AllMessages
public static final MessageInterest SystemAliveMessages
public static MessageInterest[] values()
for (MessageInterest c : MessageInterest.values()) System.out.println(c);
public static MessageInterest valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isRoutingKeyStatic()
MessageInterest instance
 is static (does not change)MessageInterest
         instance is static (does not change)public List<String> getRoutingKeys()
MessageInterest instance or a null reference if
 routing key is not staticMessageInterest instance or a null reference
         if routing key is not staticpublic Set<Integer> getPossibleSourceProducers(Map<Integer,Producer> availableProducers)
availableProducers - a list of available producerspublic boolean isProducerInScope(Producer producer)
Producer is in the message interest scopeproducer - the Producer that needs to be checked for the scopetrue if the producer is in scope, otherwise falsepublic String toShortString()
Copyright © 2016–2025. All rights reserved.