Interface OutgoingMessageInspector<O extends OutgoingMessage>
- Type Parameters:
- O- Specifies the type of the message which can be inspected by the current- OutgoingMessageInspector
- All Known Implementing Classes:
- LiveScoutOutgoingMessageInspector
public interface OutgoingMessageInspector<O extends OutgoingMessage>
Represents a class capable of inspecting messages send from the sdk to the betradar feed
- 
Method SummaryModifier and TypeMethodDescriptionintgetEventRequestRateLimitCount(String message) Gets the number of events contained by the passed string representation of the message.intgetEventRequestRateLimitCount(O message) Gets the number of events contained by the passedOutgoingMessagethat must be rate-limited.booleanisRateLimited(String message) Determines whether the current message representation should be request rate-limitedbooleanisRateLimited(O message) Determines whether the current message should be request rate-limited
- 
Method Details- 
isRateLimitedDetermines whether the current message should be request rate-limited- Parameters:
- message- The- OutgoingMessagerepresenting the message to be inspected.
- Returns:
- True if the passed OutgoingMessagemust be rate-limited. Otherwise false.
- Throws:
- IllegalArgumentException- The- messageis a null reference or the type of the- messageis not correct
 
- 
getEventRequestRateLimitCountGets the number of events contained by the passedOutgoingMessagethat must be rate-limited.- Parameters:
- message- The- OutgoingMessagerepresenting the message to be inspected.
- Returns:
- the number of events contained by the passed OutgoingMessagethat must be rate-limited.
- Throws:
- IllegalArgumentException- The- messageis a null reference or the type of the- messageis not correct
 
- 
isRateLimitedDetermines whether the current message representation should be request rate-limited- Parameters:
- message- The string representation of the message
- Returns:
- True if the passed message should be rate limited. Otherwise false.
- Throws:
- IllegalArgumentException- The- messageis a null reference
 
- 
getEventRequestRateLimitCountGets the number of events contained by the passed string representation of the message.- Parameters:
- message- The message to be inspected.
- Returns:
- The number of events contained in the passed message that must be rate limited.
- Throws:
- IllegalArgumentException- The- messageis a null reference
 
 
-