org.eigenbase.test.concurrent
Class ConcurrentTestTimedCommandGenerator.TimedIterator
java.lang.Object
org.eigenbase.test.concurrent.ConcurrentTestTimedCommandGenerator.TimedIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- ConcurrentTestTimedCommandGenerator
private class ConcurrentTestTimedCommandGenerator.TimedIterator
- extends Object
- implements Iterator
TimedIterator is an Iterator that repeats a given collection's elements
until System.currentTimeMillis() >= endTimeMillis
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commands
private Object[] commands
endTimeMillis
private long endTimeMillis
commandIndex
private int commandIndex
ConcurrentTestTimedCommandGenerator.TimedIterator
private ConcurrentTestTimedCommandGenerator.TimedIterator(Collection commands,
long endTimeMillis)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator