Interface Throttler


public interface Throttler
Interface to implement throttling for document store. Concrete implementations for this interface are required provide implementation for throttling time based on their internal usage/statistics
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Throttler
    Default implementation with no throttling
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The time duration (in Millis) for which we need to throttle the system.
  • Field Details

    • NO_THROTTLING

      static final Throttler NO_THROTTLING
      Default implementation with no throttling
  • Method Details

    • throttlingTime

      long throttlingTime()
      The time duration (in Millis) for which we need to throttle the system.
      Returns:
      the throttling time duration (in Millis)