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
FieldsModifier and TypeFieldDescriptionstatic final Throttler
Default implementation with no throttling -
Method Summary
Modifier and TypeMethodDescriptionlong
The time duration (in Millis) for which we need to throttle the system.
-
Field Details
-
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)
-