@Override public double getWorkFactor() { return callbackExecutor.getWorkFactor(); }
@Override public double getWorkFactor() { return callbackExecutor.getWorkFactor(); }
@Override public double getWorkFactor() { return callbackExecutor.getWorkFactor(); }
@Override public double getWorkFactor() { return callbackExecutor.getWorkFactor(); }
@Override public double getWorkFactor() { return callbackExecutor.getWorkFactor(); }
@Test public void testSetWorkRate() { throttler.setWorkFactor(1.0); assertEquals(1.0, throttler.getWorkFactor()); throttler.setWorkFactor(0.5); assertEquals(0.5, throttler.getWorkFactor()); throttler.setWorkFactor(Throttleable.MIN_WORK_FACTOR); assertEquals(Throttleable.MIN_WORK_FACTOR, throttler.getWorkFactor()); }