Examples of RequestTimeoutException


Examples of com.amazonaws.services.simpledb.model.RequestTimeoutException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("RequestTimeout"))
            return null;

        RequestTimeoutException e = (RequestTimeoutException)super.unmarshall(node);
       
        e.setBoxUsage(XpathUtils.asFloat(getErrorPropertyPath("BoxUsage"), node));
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.simpledb.model.RequestTimeoutException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("RequestTimeout"))
            return null;

        RequestTimeoutException e = (RequestTimeoutException)super.unmarshall(node);
       
        e.setBoxUsage(XpathUtils.asFloat(getErrorPropertyPath("BoxUsage"), node));
       
        return e;
    }
View Full Code Here

Examples of com.cisco.oss.foundation.loadbalancer.RequestTimeoutException

            ContentResponse contentResponse = httpRequest.send();
            return new JettyHttpResponse(contentResponse, httpRequest.getURI());
        } catch (InterruptedException e) {
            throw new ClientException(e.toString(), e);
        } catch (TimeoutException e) {
            throw new RequestTimeoutException(e.toString(), e);
        } catch (ExecutionException e) {
            throw new ClientException(e.toString(), e);
        }
    }
View Full Code Here

Examples of com.cisco.oss.foundation.loadbalancer.RequestTimeoutException

            ContentResponse contentResponse = httpRequest.send();
            return new JettyHttpResponse(contentResponse, httpRequest.getURI());
        } catch (InterruptedException e) {
            throw new ClientException(e.toString(), e);
        } catch (TimeoutException e) {
            throw new RequestTimeoutException(e.toString(), e);
        } catch (ExecutionException e) {
            throw new ClientException(e.toString(), e);
        }
    }
View Full Code Here

Examples of com.google.gwt.http.client.RequestTimeoutException

        Caller caller = new Caller();
        caller.setMaxAttempts(3);

        // no attempts made so far (allowed for some exceptions)
        assertFalse(caller.isAnotherAttemptAllowed(null));
        assertTrue(caller.isAnotherAttemptAllowed(new RequestTimeoutException(null, 0)));
        assertFalse(caller.isAnotherAttemptAllowed(new Exception("Hello")));

        // 1 attempt made so far (allowed for some exceptions)
        caller.incrementAttempts();
        assertFalse(caller.isAnotherAttemptAllowed(null));
        assertTrue(caller.isAnotherAttemptAllowed(new RequestTimeoutException(null, 0)));
        assertFalse(caller.isAnotherAttemptAllowed(new Exception("Hello")));

        // 2 attempts made so far (allowed for some exceptions)
        caller.incrementAttempts();
        assertFalse(caller.isAnotherAttemptAllowed(null));
        assertTrue(caller.isAnotherAttemptAllowed(new RequestTimeoutException(null, 0)));
        assertFalse(caller.isAnotherAttemptAllowed(new Exception("Hello")));

        // 3 attempts made so far (disallowed because we've already made the maximum number of retries)
        caller.incrementAttempts();
        assertFalse(caller.isAnotherAttemptAllowed(null));
        assertFalse(caller.isAnotherAttemptAllowed(new RequestTimeoutException(null, 0)));
        assertFalse(caller.isAnotherAttemptAllowed(new Exception("Hello")));
    }
View Full Code Here

Examples of com.google.gwt.http.client.RequestTimeoutException

        assertNull(caller.result);
    }

    /** Test onUnhandledError() for RequestTimeoutException. */
    @Test public void testOnUnhandledError5() {
        Throwable exception = new RequestTimeoutException(null, 0);
        Caller caller = new Caller();
        caller.onUnhandledError(exception);

        assertEquals("generateRequestTimeoutExceptionError", caller.error.getMessage());
        assertNull(caller.statusCode);
View Full Code Here

Examples of com.google.gwt.http.client.RequestTimeoutException

  /**
   * Method called when this request times out.
   */
  private void fireOnTimeout(RequestCallback callback) {
    cancel();
    callback.onError(this, new RequestTimeoutException(this, timeoutMillis));
  }
View Full Code Here

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

Examples of net.solosky.maplefetion.net.RequestTimeoutException

    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

Examples of org.vosao.common.RequestTimeoutException

  }
 
  private void reindexPage(PageEntity page) throws RequestTimeoutException {
    currentNumber++;
    if (getBusiness().getSystemService().getRequestCPUTimeSeconds() > 20) {
      throw new RequestTimeoutException();
    }
    if (msg.getNumber() <= currentNumber) {
      getBusiness().getSearchEngine().updateIndex(page.getId());
      count++;
    }
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.