Package com.castlabs.sdk.debug
Interface RateLimiter
-
public interface RateLimiterLimit downloads speeds with implementations of this interface. This is exposed by the debug plugin. One the debug plugin is registered and the rate limiter is enabled (seeDebugPlugin.Builder.enableRateLimiter(boolean, long)), you can get the limiter at runtime using:DebugPlugin debugPlugin = PlayerSDK.getPlugin(DebugPlugin.class); if (debugPlugin != null) { RateLimiter rateLimiter = debugPlugin.getRateLimiter(); }- Since:
- 4.2.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLimit()Get the current rate limit in bps.voidsetLimit(long limitBps)Set the limit that will be passed to the next data source created by this builder.
-