Class TwitchHelixRateLimitTracker
java.lang.Object
com.github.twitch4j.helix.interceptor.TwitchHelixRateLimitTracker
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTwitchHelixRateLimitTracker(io.github.bucket4j.Bandwidth apiRateLimit, TwitchHelixTokenManager tokenManager) Creates a newTwitchHelixRateLimitTrackerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidmarkDepletedBanBucket(@NotNull String channelId) voidupdateRemaining(@NotNull String token, int remaining) voidupdateRemainingCreateClip(@NotNull String token, int remaining) voidupdateRemainingExtensionChat(@NotNull String clientId, @NotNull String channelId, int remaining) voidupdateRemainingExtensionPubSub(@NotNull String clientId, @NotNull String target, int remaining)
-
Field Details
-
AUTOMOD_STATUS_NORMAL_BANDWIDTH
-
AUTOMOD_STATUS_AFFILIATE_BANDWIDTH
-
AUTOMOD_STATUS_PARTNER_BANDWIDTH
-
-
Constructor Details
-
TwitchHelixRateLimitTracker
public TwitchHelixRateLimitTracker(io.github.bucket4j.Bandwidth apiRateLimit, TwitchHelixTokenManager tokenManager) Creates a newTwitchHelixRateLimitTrackerinstance.- Parameters:
apiRateLimit- The primary (global helix) rate limit bandwidth to usetokenManager- Twitch Helix Token Manager
-
-
Method Details
-
updateRemaining
-
updateRemainingExtensionChat
-
updateRemainingExtensionPubSub
-
updateRemainingCreateClip
-
markDepletedBanBucket
-