Interface ThroughputController
- All Superinterfaces:
Stoppable
- All Known Implementing Classes:
NoLimitThroughputController
,PressureAwareCompactionThroughputController
,PressureAwareFlushThroughputController
,PressureAwareThroughputController
A utility that constrains the total throughput of one or more simultaneous flows by sleeping when
necessary.
-
Method Summary
-
Method Details
-
setup
Setup controller for the given region server. -
start
Start the throughput controller. -
control
Control the throughput. Will sleep if too fast.- Returns:
- the actual sleep time.
- Throws:
InterruptedException
-
finish
Finish the controller. Should call this method in a finally block.
-