Interface LexofficeApiBuilder.ThrottleProvider

Enclosing class:
LexofficeApiBuilder

public static interface LexofficeApiBuilder.ThrottleProvider
manually handle the throttling of the api
useful when you work with JToggle and this api together with the same api-key
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    will get called from RequestContext immediately after api is called in order to keep lastCall somewhere outside
    long
     
  • Method Details

    • getNextCallAllowed

      long getNextCallAllowed()
      Returns:
      milliseconds in future when a next call is allowed
    • apiCalled

      void apiCalled()
      will get called from RequestContext immediately after api is called in order to keep lastCall somewhere outside