class IncrementingNonceGenerator implements Iterable<Long> {

  @Override
  public Iterator<Long> iterator() {
    return new Iterator<Long>() {
      @Override
      public boolean hasNext() {
        return true;
      }

      @Override
      public Long next() {
        return nextValue++;
      }
    };
  }

  public  IncrementingNonceGenerator(final long nextValue);

}