Searched refs:NanoDelay (Results 1 – 1 of 1) sorted by relevance
70 static class NanoDelay implements Delayed { class in DelayQueueTest72 NanoDelay(long i) { in NanoDelay() method in DelayQueueTest.NanoDelay75 public int compareTo(NanoDelay y) { in compareTo()84 return compareTo((NanoDelay)y); in compareTo()88 return equals((NanoDelay)other); in equals()90 public boolean equals(NanoDelay other) { in equals()663 DelayQueue<NanoDelay> q = new DelayQueue<NanoDelay>(); in testDelay()665 q.add(new NanoDelay(1000000L * (SIZE - i))); in testDelay()669 NanoDelay e = q.take(); in testDelay()684 q.add(new NanoDelay(Long.MAX_VALUE)); in testPeekDelayed()[all …]