public void updateLastInfo(Long lastId, Long lastTimeStamp) { if (follower != null && (follower.getLastId() != lastId) || follower.getLastTimeStamp() != lastTimeStamp) { follower.setLastId(lastId); follower.setLastTimeStamp(lastTimeStamp); followerService.updateFollower(follower); } }
public void updateLastId(Long finalLastId) { if (follower != null && follower.getLastId() != finalLastId) { follower.setLastId(finalLastId); followerService.updateFollower(follower); } }