Examples of TimeoutException


Examples of org.dbpedia.spotlight.exceptions.TimeoutException

            //mSearcher.
            hits = collector.topDocs().scoreDocs;
            long end = System.nanoTime();
            LOG.debug(String.format("Done search in %f ms. hits.length=%d",(end-start) / 1000000.0, hits.length));
        } catch (TimeLimitingCollector.TimeExceededException timedOutException) {
            throw new TimeoutException("Timeout (>"+timeout+"ms searching for surface form "+query.toString(),timedOutException);
        } catch (Exception e) {
            throw new SearchException("Error searching for surface form "+query.toString(),e);
        }
        //LOG.debug(hits.length+" hits found.");
        return hits;
View Full Code Here

Examples of org.drools.grid.TimeoutException

       
        if (isDone() ) {
            return this.message;
        }

        throw new TimeoutException("Timeout waiting for responses ");

    }
View Full Code Here

Examples of org.eclipse.equinox.concurrent.future.TimeoutException

        long timeout = CONNECT_TIMEOUT + System.currentTimeMillis();
        while (connectWaiting && (timeout > System.currentTimeMillis())) {
          connectLock.wait(2000);
        }
        if (connectWaiting)
          throw new TimeoutException(NLS.bind(
              Messages.IRCRootContainer_Connect_Timeout,
              tID.getName()), CONNECT_TIMEOUT);
        if (connectException != null)
          throw connectException;
        this.targetID = tID;
View Full Code Here

Examples of org.eclipse.jdi.TimeoutException

    attachThread.start();
    try {
      attachThread.join(attachTimeout);
      if (attachThread.isAlive()) {
        attachThread.interrupt();
        throw new TimeoutException();
      }
    } catch (InterruptedException e) {
    }

    if (ex[0] != null) {
View Full Code Here

Examples of org.eclipse.swtbot.swt.finder.widgets.TimeoutException

      } catch (Throwable e) {
        // do nothing
      }
      sleep(interval);
      if (System.currentTimeMillis() > limit)
        throw new TimeoutException("Timeout after: " + timeout + " ms.: " + condition.getFailureMessage()); //$NON-NLS-1$ //$NON-NLS-2$
    }
  }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TimeoutException

         }
         case COMMAND_TIMEOUT_STATUS: {
            if (log.isTraceEnabled()) {
               log.trace("timeout message received from the server");
            }
            throw new TimeoutException();
         }
         case NO_ERROR_STATUS:
         case KEY_DOES_NOT_EXIST_STATUS:
         case NOT_PUT_REMOVED_REPLACED_STATUS: {
            //don't do anything, these are correct responses
View Full Code Here

Examples of org.infinispan.lock.TimeoutException

         for (Rsp rsp : rsps.values()) {
            if (rsp.wasSuspected() || !rsp.wasReceived()) {
               if (rsp.wasSuspected()) {
                  throw new SuspectException("Suspected member: " + rsp.getSender());
               } else {
                  throw new TimeoutException("Replication timeout for " + rsp.getSender());
               }
            } else {
               if (rsp.getValue() != null) {
                  Response value = (Response) rsp.getValue();
                  if (value instanceof ExceptionResponse) {
View Full Code Here

Examples of org.infinispan.util.concurrent.TimeoutException

            if (rsp.wasSuspected() || !rsp.wasReceived()) {
               if (rsp.wasSuspected()) {
                  throw new SuspectException("Suspected member: " + rsp.getSender());
               } else {
                  // if we have a response filter then we may not have waited for some nodes!
                  if (responseFilter == null) throw new TimeoutException("Replication timeout for " + rsp.getSender());
               }
            } else {
               noValidResponses = false;
               if (rsp.getValue() != null) {
                  Response value = (Response) rsp.getValue();
                  if (value instanceof ExceptionResponse) {
                     Exception e = ((ExceptionResponse) value).getException();
                     if (!(e instanceof ReplicationException)) {
                        // if we have any application-level exceptions make sure we throw them!!
                        if (trace) log.trace("Recieved exception '{0}' from {1}", e, rsp.getSender());
                        throw e;
                     }
                  }
                  retval.add(value);
               }
            }
         }

         if (noValidResponses) throw new TimeoutException("Timed out waiting for valid responses!");
         return retval;
      } finally {
         // release the "processing" lock so that other threads are aware of the network call having completed
         if (unlock) flushTracker.releaseProcessingLock();
      }
View Full Code Here

Examples of org.jboss.cache.lock.TimeoutException

   private static class SecretiveStateCacheMessageListener extends ChannelMessageListener
   {
      @Override
      public void setState(byte[] new_state)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here

Examples of org.jboss.cache.lock.TimeoutException

      }

      @Override
      public void setState(InputStream istream)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
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.