public void addOwnBytes(long userId, long newBytes) { UserInfo tUser = null; synchronized (USERS) { userHeartbeat(userId); tUser = USERS.get(userId); } tUser.addOwnBytes(newBytes); }
/** * Handle the user's heartbeat. * * @param userId The id of the user * @throws TException */ public void userHeartbeat(long userId) throws TException { mUsers.userHeartbeat(userId); }