FMLiveSwitchRateLimiter Class Reference

Instance Methods

(int) - checkDelayWithCurrentTime:
 
(instancetype) - init
 
(instancetype) - initWithRules:
 
(void) - reset
 
(NSMutableArray *) - rules
 

Class Methods

(NSMutableArray *) + generateRateLimiterRulesWithOriginalInterval:backoffMultiplier:numRules:
 
(FMLiveSwitchRateLimiter *) + rateLimiter
 
(FMLiveSwitchRateLimiter *) + rateLimiterWithRules:
 

Method Documentation

◆ checkDelayWithCurrentTime:

- (int) checkDelayWithCurrentTime: (long long)  currentTime

◆ generateRateLimiterRulesWithOriginalInterval:backoffMultiplier:numRules:

+ (NSMutableArray*) generateRateLimiterRulesWithOriginalInterval: (long long)  originalInterval
backoffMultiplier: (int)  backoffMultiplier
numRules: (int)  numRules 

◆ init

- (instancetype) init

◆ initWithRules:

- (instancetype) initWithRules: (NSMutableArray *)  rules

◆ rateLimiter

+ (FMLiveSwitchRateLimiter*) rateLimiter

◆ rateLimiterWithRules:

+ (FMLiveSwitchRateLimiter*) rateLimiterWithRules: (NSMutableArray *)  rules

◆ reset

- (void) reset

◆ rules

- (NSMutableArray*) rules