コード例 #1
0
 @Override
 public void restartDataTracking() {
   Page<TwitterUser> existingUsers =
       twitterUserRepository.findAllListMembers(new PageRequest(0, 4000));
   tick5StatusListener.halt();
   tick5StatusListener.listen(existingUsers.getContent());
 }
コード例 #2
0
 @Override
 public void startDatatracking() throws TwitterException {
   List<TwitterUser> existingUsers =
       twitterUserRepository.findAllListMembers(new PageRequest(0, 4000)).getContent();
   if (existingUsers == null) {
     existingUsers = new ArrayList<TwitterUser>();
   }
   // Check if new users were added to the list and if so, store them in
   // the DB
   /*if (init)
   updateListMembers(existingUsers);*/
   // Now start listening for new tweets from all these users
   tick5StatusListener.listen(existingUsers);
 }