Package com.castlabs.sdk.debug.view
Class RateLimitTraces
java.lang.Object
com.castlabs.sdk.debug.view.RateLimitTraces
This class is responsible for displaying the rate limit traces.
-
Constructor Summary
ConstructorsConstructorDescriptionRateLimitTraces
(View parent, RateLimiter rateLimiter) Constructor for the RateLimitTraces class. -
Method Summary
-
Constructor Details
-
RateLimitTraces
Constructor for the RateLimitTraces class.- Parameters:
parent
- The parent view.rateLimiter
- The rate limiter.
-
-
Method Details
-
start
public void start(@Nullable com.github.mikephil.charting.charts.LineChart chart) Starts the rate tracer.- Parameters:
chart
- The chart to update.
-
stop
public void stop()Stops the rate tracer. -
isRunning
public boolean isRunning()Returns whether the rate tracer is running.- Returns:
- True if the rate tracer is running, false otherwise.
-
restart
public void restart()Restarts the rate tracer.
-