Class TwitchHelixRateLimitTracker
java.lang.Object
com.github.twitch4j.helix.interceptor.TwitchHelixRateLimitTracker
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTwitchHelixRateLimitTracker
(io.github.bucket4j.Bandwidth apiRateLimit, TwitchHelixTokenManager tokenManager) Creates a newTwitchHelixRateLimitTracker
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
markDepletedBanBucket
(@NotNull String channelId) void
updateRemaining
(@NotNull String token, int remaining) void
updateRemainingCreateClip
(@NotNull String token, int remaining) void
updateRemainingExtensionChat
(@NotNull String clientId, @NotNull String channelId, int remaining) void
updateRemainingExtensionPubSub
(@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 newTwitchHelixRateLimitTracker
instance.- Parameters:
apiRateLimit
- The primary (global helix) rate limit bandwidth to usetokenManager
- Twitch Helix Token Manager
-
-
Method Details
-
updateRemaining
-
updateRemainingExtensionChat
-
updateRemainingExtensionPubSub
-
updateRemainingCreateClip
-
markDepletedBanBucket
-