@Test public void testTicksNop() throws InterruptedException { PollingStrategy pollingStrategy = PollingStrategies.nop(); AtomicInteger count = new AtomicInteger(); CountDownLatch onComplete = new CountDownLatch(1); pollingStrategy.start(when -> { count.incrementAndGet(); onComplete.countDown(); return ChangeEventType.UNCHANGED; }); assertThat(onComplete.await(100, TimeUnit.MILLISECONDS), is(false)); }
public static PollingStrategy nop() { return NopPollingStrategyHolder.NOP; }
PollingStrategies { public static PollingStrategy nop() { return NopPollingStrategyHolder.NOP; } }
PollingStrategies { public static PollingStrategy nop() { return NopPollingStrategyHolder.NOP; } private  PollingStrategies(); }
PollingStrategies { public static PollingStrategy nop() { return NopPollingStrategyHolder.NOP; } private  PollingStrategies(); static PollingStrategy nop(); static ScheduledBuilder regular(Duration interval); }
PollingStrategies { public static PollingStrategy nop() { return NopPollingStrategyHolder.NOP; } private  PollingStrategies(); static PollingStrategy nop(); static ScheduledBuilder regular(Duration interval);  }