org.eigenbase.test.concurrent
Class ConcurrentTestTimedCommandGenerator.TimedIterator

java.lang.Object
  extended by 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.


Field Summary
private  int commandIndex
           
private  Object[] commands
           
private  long endTimeMillis
           
 
Constructor Summary
private ConcurrentTestTimedCommandGenerator.TimedIterator(Collection commands, long endTimeMillis)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

private Object[] commands

endTimeMillis

private long endTimeMillis

commandIndex

private int commandIndex
Constructor Detail

ConcurrentTestTimedCommandGenerator.TimedIterator

private ConcurrentTestTimedCommandGenerator.TimedIterator(Collection commands,
                                                          long endTimeMillis)
Method Detail

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