Package com.castlabs.sdk.debug.view

# Class RateLimitTraces

java.lang.Object
com.castlabs.sdk.debug.view.RateLimitTraces

public class RateLimitTraces extends Object
This class is responsible for displaying the rate limit traces.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RateLimitTraces(View parent, RateLimiter rateLimiter)`
  Constructor for the RateLimitTraces class.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isRunning()`
  Returns whether the rate tracer is running.
  `void`
  `restart()`
  Restarts the rate tracer.
  `void`
  `start(com.github.mikephil.charting.charts.LineChart chart)`
  Starts the rate tracer.
  `void`
  `stop()`
  Stops the rate tracer.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RateLimitTraces

    public RateLimitTraces(View parent, RateLimiter rateLimiter)
    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.