示例#1
0
 public Long incrMaxSeq(MucRoom room) {
   Lock lock = roomLockSet.getLock(room.getId());
   try {
     lock.lock();
     room.setMaxSeq(room.getMaxSeq() + 1);
     upadte(room);
     return room.getMaxSeq();
   } finally {
     lock.unlock();
   }
 }