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
useful when you work with JToggle and this api together with the same api-key
-
Method Summary
Modifier and TypeMethodDescriptionvoidwill get called fromRequestContextimmediately after api is called in order to keep lastCall somewhere outsidelong
-
Method Details
-
getNextCallAllowed
long getNextCallAllowed()- Returns:
- milliseconds in future when a next call is allowed
-
apiCalled
void apiCalled()will get called fromRequestContextimmediately after api is called in order to keep lastCall somewhere outside
-