Examples of TimeoutException


Examples of JACE.ASX.TimeoutException

  synchronized (waitObject_) {
    long start = System.currentTimeMillis();
    long waitTime = tv.getMilliTime() - start;
    if (waitTime < 1)
      throw new TimeoutException ();
    waitObject_.wait (waitTime);
  }

  mutex_.acquire (tv);
      }
View Full Code Here

Examples of co.paralleluniverse.fibers.TimeoutException

                        now = System.nanoTime();
                        left = start + unit.toNanos(timeout) - now;
                        if (left <= 0) {
                            record(1, "Actor", "receive", "%s timed out.", this);
                            throw new TimeoutException();
                        }
                    } else
                        mailbox.await();
                } finally {
                    mailbox.unlock();
View Full Code Here

Examples of co.paralleluniverse.galaxy.TimeoutException

            else if (result == null && op.isCancelled())
                throw new CancellationException();
            else
                return result;
        } catch (java.util.concurrent.TimeoutException e) {
            throw new TimeoutException(e);
        } catch (InterruptedException e) {
            return null;
        } catch (ExecutionException e) {
            Throwable ex = e.getCause();
            if (ex instanceof TimeoutException)
View Full Code Here

Examples of com.alibaba.dubbo.remoting.TimeoutException

                throw new RuntimeException(e);
            } finally {
                lock.unlock();
            }
            if (! isDone()) {
                throw new TimeoutException(sent > 0, channel, getTimeoutMessage(false));
            }
        }
        return returnFromResponse();
    }
View Full Code Here

Examples of com.bj58.spat.gaea.protocol.exception.TimeoutException

                logger.error(server.getName()+" server has reboot,system will change normal server!");
                continue;
              }
            }catch(TimeoutException te){
              if(count == 0 || i == requestTime){
                throw new TimeoutException("Receive data timeout or error!");
              }
              if(i < count && i < requestTime) {
                logger.error(server.getName()+" server has TimeoutException,system will change normal server!");
                continue;
              }
View Full Code Here

Examples of com.caucho.bam.TimeoutException

            item = remove(item.getId());
           
            if (item != null) {
              QueryCallback cb = item._callback;
             
              Exception exn = new TimeoutException();
              BamError error = BamError.create(exn);
             
              cb.onQueryError(null, null, null, error);
            }
          }
View Full Code Here

Examples of com.caucho.bam.TimeoutException

    @Override
    public Serializable get()
      throws TimeoutException, BamException
    {
      if (! waitFor(_timeout)) {
        throw new TimeoutException(this + " query timeout " + _payload
                                   + " {to:" + _to + "}");
      }
      else if (getError() != null)
        throw getError().createException();
      else
View Full Code Here

Examples of com.emc.vipr.client.exceptions.TimeoutException

    public static TaskResourceRep waitForTask(RestClient client, TaskResourceRep task, long timeoutMillis) {
        long startTime = System.currentTimeMillis();
        while (isRunning(task)) {
            if (timeoutMillis > 0 && (System.currentTimeMillis() - startTime) > timeoutMillis) {
                throw new TimeoutException("Timed out waiting for task to complete");
            }
            try {
                Thread.sleep(client.getConfig().getTaskPollingInterval());
            }
            catch (InterruptedException e) {
View Full Code Here

Examples of com.google.api.explorer.client.base.http.TimeoutException

      this.timer = new Timer() {
        @Override
        public void run() {
          if (callback != null) {
            CrossDomainRequest.this.cancel();
            callback.onFailure(new TimeoutException());
          }
        }
      };
      timer.schedule(timeoutMillis);
    }
View Full Code Here

Examples of com.google.gwt.junit.client.TimeoutException

      lastModule = currentModule;
      if (testMethodTimeout == 0) {
        testMethodTimeout = currentTimeMillis + testBatchingMethodTimeoutMillis;
      } else if (testMethodTimeout < currentTimeMillis) {
        double elapsed = (currentTimeMillis - testBeginTime) / 1000.0;
        throw new TimeoutException(
            "The browser did not complete the test method "
                + currentTestInfo.toString() + " in "
                + testBatchingMethodTimeoutMillis
                + "ms.\n  We have no results from:\n"
                + messageQueue.getWorkingClients(currentTestInfo)
                + "Actual time elapsed: " + elapsed + " seconds.\n");
      }
    } else if (testBeginTimeout < currentTimeMillis) {
      double elapsed = (currentTimeMillis - testBeginTime) / 1000.0;
      throw new TimeoutException(
          "The browser did not contact the server within "
              + baseTestBeginTimeoutMillis + "ms.\n"
              + messageQueue.getUnretrievedClients(currentTestInfo)
              + "\n Actual time elapsed: " + elapsed + " seconds.\n");
    }

    // Check that we haven't lost communication with a remote host.
    String[] interruptedHosts = runStyle.getInterruptedHosts();
    if (interruptedHosts != null) {
      StringBuilder msg = new StringBuilder();
      msg.append("A remote browser died a mysterious death.\n");
      msg.append("  We lost communication with:");
      for (String host : interruptedHosts) {
        msg.append("\n  ").append(host);
      }
      throw new TimeoutException(msg.toString());
    }

    if (messageQueue.hasResults(currentTestInfo)) {
      return false;
    } else if (pendingException == null) {
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.