()
| 118 | } |
| 119 | |
| 120 | private void loop() { |
| 121 | if ("leakyBucket".equals(this.algorithm)) { |
| 122 | leakyBucketLoop(); |
| 123 | } else { |
| 124 | rollingWindowLoop(); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | private void leakyBucketLoop() { |
| 129 | long lastTimestamp = milliseconds(); |
nothing calls this directly
no test coverage detected