public long nextActionMillis(long now,long nextRetryTimeMillis){
  for (  FileDownloadInfo info : downloads) {
    long individualRetryTimeMillis=getNextActionMillisFor(now,info);
    nextRetryTimeMillis=Math.min(individualRetryTimeMillis,nextRetryTimeMillis);
  }
  return nextRetryTimeMillis;
}

public long nextActionMillis ( long now , long nextRetryTimeMillis ) { for ( FileDownloadInfo info : downloads ) { long individualRetryTimeMillis = getNextActionMillisFor ( now , info ) ; nextRetryTimeMillis = Math . min ( individualRetryTimeMillis , nextRetryTimeMillis ) ; } return nextRetryTimeMillis ; }
return time when this download will be ready for its next action , in milliseconds after given time .
