/**
  * 登录/登出是否成功
  *
  * @return boolean
  */
 public boolean isLockOk() {
   if (session != null) {
     LockExpress lock = (LockExpress) session.getAttribute(ExpressConstant.SESSION_LOCK);
     return lock.isOk();
   }
   return false;
 }
 /**
  * 锁定登录/登出当前线程
  *
  * @throws InterruptedException
  */
 public void doLock() throws InterruptedException {
   if (session != null) {
     LockExpress lock = (LockExpress) session.getAttribute(ExpressConstant.SESSION_LOCK);
     synchronized (lock) {
       lock.setOk(false);
       lock.wait(ExpressConstant.CONNECT_TIMEOUT * 1000L);
     }
   }
 }