@Test public void testNoRequestIfLowCapacity() { EWMAWriteDemandEstimator supplier = new EWMAWriteDemandEstimator(); assertThat("Unexpected request-n.", supplier.getRequestNForCapacity(2), is(0L)); }
@Override protected long getRequestNForCapacity(final long capacityToFill) { return capacityToFill / sizeAccumulator; }
EWMAWriteDemandEstimator extends OverlappingCapacityAwareEstimator { @Override protected long getRequestNForCapacity(final long capacityToFill) { return capacityToFill / sizeAccumulator; } }
EWMAWriteDemandEstimator extends OverlappingCapacityAwareEstimator { @Override protected long getRequestNForCapacity(final long capacityToFill) { return capacityToFill / sizeAccumulator; } EWMAWriteDemandEstimator();   EWMAWriteDemandEstimator(long sizeAccumulator); }
EWMAWriteDemandEstimator extends OverlappingCapacityAwareEstimator { @Override protected long getRequestNForCapacity(final long capacityToFill) { return capacityToFill / sizeAccumulator; } EWMAWriteDemandEstimator();   EWMAWriteDemandEstimator(long sizeAccumulator);  }
EWMAWriteDemandEstimator extends OverlappingCapacityAwareEstimator { @Override protected long getRequestNForCapacity(final long capacityToFill) { return capacityToFill / sizeAccumulator; } EWMAWriteDemandEstimator();   EWMAWriteDemandEstimator(long sizeAccumulator);   }