Package net.solosky.maplefetion.net

Examples of net.solosky.maplefetion.net.RequestTimeoutException


      //尝试等待
          lock.wait(timeout);
         
             //如果在等待的时间内没有通知,就抛出请求超时异常
             if(!this.isNotifyed || this.event==null ) {
               throw new RequestTimeoutException();
             }
            
             //如果当前的事件是超时事件,也抛出超时异常
             if(this.event.getEventType()==ActionEventType.TIMEOUT){
               throw new RequestTimeoutException();
             }
            
             //如果当前事件是传输错误事件,抛出传输异常
             if(this.event.getEventType()==ActionEventType.TRANSFER_ERROR){
               throw new TransferException();
View Full Code Here


    synchronized (lock) {
      this.isWaiting = true;
      this.response   = null;
            lock.wait();
            if(this.isTimeout) {
              throw new RequestTimeoutException();
            }
            if(this.isError) {
              throw new TransferException();
            }
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.net.RequestTimeoutException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.