Class TwitchHelixRateLimitTracker

java.lang.Object
com.github.twitch4j.helix.interceptor.TwitchHelixRateLimitTracker

public final class TwitchHelixRateLimitTracker extends Object
  • Field Details

  • Constructor Details

    • TwitchHelixRateLimitTracker

      public TwitchHelixRateLimitTracker(io.github.bucket4j.Bandwidth apiRateLimit, TwitchHelixTokenManager tokenManager)
      Creates a new TwitchHelixRateLimitTracker instance.
      Parameters:
      apiRateLimit - The primary (global helix) rate limit bandwidth to use
      tokenManager - Twitch Helix Token Manager
  • Method Details

    • updateRemaining

      public void updateRemaining(@NotNull @NotNull String token, int remaining)
    • updateRemainingExtensionChat

      public void updateRemainingExtensionChat(@NotNull @NotNull String clientId, @NotNull @NotNull String channelId, int remaining)
    • updateRemainingExtensionPubSub

      public void updateRemainingExtensionPubSub(@NotNull @NotNull String clientId, @NotNull @NotNull String target, int remaining)
    • updateRemainingCreateClip

      public void updateRemainingCreateClip(@NotNull @NotNull String token, int remaining)
    • markDepletedBanBucket

      @Unofficial public void markDepletedBanBucket(@NotNull @NotNull String channelId)