Examples of incRetryTimes()


Examples of net.solosky.maplefetion.sipc.SipcRequest.incRetryTimes()

      it = timeoutList.iterator();
      while(it.hasNext()){
        SipcRequest request = it.next();
        if(request.getRetryTimes()<maxTryTimes){    //重发次数未超过指定的次数,重新发送这个包
          logger.debug("Request was timeout, now sending it again... Request="+request);
          request.incRetryTimes();          //递增重试次数
          request.setAliveTime(curTime+aliveTime)//更新存活时间
          this.processOutcoming(request);        // 重新发送这个包
        }else{                      //这个包已经超过重发次数,通知超时
          logger.warn("A request was sent three times, handle this timeout exception...Request="+request);
          this.handleRequestTimeout(request);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.