@SdkTestInternalApi
    synchronized double getCurrentCapacity() {
        return currentCapacity;
    }
<pre>
_CUBICSuccess(timestamp)
  dt = timestamp - last_throttle_time
  calculated_rate = (SCALE_CONSTANT * ((dt - _time_window) ^ 3)) + last_max_rate
  return calculated_rate
</pre>
aws-java-sdk-core/src/main/java/com/amazonaws/internal/TokenBucket.java