@Scheduled(fixedRate=300000,initialDelay=20000) public void schedulePageRank(){
  logger.info("PageRank scheduled on follows graph " + dateFormat.format(new Date()));
  if (userRepository.findNextUserToCrawl() != null) {
    String jobUrl=String.format(PAGERANK_JOB_URL,neo4jServer.url());
    restTemplate.getForEntity(jobUrl,null);
  }
}

@ Scheduled ( fixedRate = 300000 , initialDelay = 20000 ) public void schedulePageRank ( ) { logger . info ( "PageRank scheduled on follows graph " + dateFormat . format ( new Date ( ) ) ) ; if ( userRepository . findNextUserToCrawl ( ) != null ) { String jobUrl = String . format ( PAGERANK_JOB_URL , neo4jServer . url ( ) ) ; restTemplate . getForEntity ( jobUrl , null ) ; } }
every five minutes a pagerank job is scheduled with neo4j ' s mazerunner service
