public void fetchFriends(long id) {
		for (;;) {
			if(hdb.get(String.valueOf(id)) != null) {
				
			} else {
				//RateLimitになった時の処理
				if (count >= limit) {
					if (userCount >= accessTokenList.size()) {
						try {
							long time = twitter.getRateLimitStatus().getResetTime()
									.getTime();
							Thread.sleep(time - System.currentTimeMillis());
						} catch (Exception e) {
							e.printStackTrace();
						}
						userCount = 0;
					} else {
						userCount++;
					}

					count = 0;
					limit = getLimit(count);
				}
				
				hdb.put(String.valueOf(id), "a");
				long[] ids = null;
				try {
					twitter.setOAuthAccessToken(accessTokenList.get(userCount));
					ids = twitter.getFriendsIDs(id, -1).getIDs();
					try {
						Thread.sleep(sleeptime);
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
					System.out.println(count);
					count++;
				} catch (TwitterException e1) {

				}
				db.setNodeToDB(ids);
				db.setRelationToDB(id, ids);
				
				if (ids != null)
					for (long friendId : ids) {
						queue.add(friendId);
					}
			}
			id = queue.poll();
		}
	}