Examples of TimeoutException


Examples of org.jboss.cache.lock.TimeoutException

      }

      @Override
      public void setState(String state_id, byte[] state)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here

Examples of org.jboss.cache.lock.TimeoutException

      }

      @Override
      public void setState(String state_id, InputStream istream)
      {
         setStateException = new TimeoutException("Planned Timeout");
      }
View Full Code Here

Examples of org.jboss.ha.framework.server.lock.TimeoutException

      makeThreadSafe(handler, true);
      // When caller 1 invokes, block before giving response
      CountDownLatch answerStartLatch = new CountDownLatch(1);
      CountDownLatch answerDoneLatch = new CountDownLatch(1);
      BlockingAnswer<Boolean> caller1Answer = new BlockingAnswer<Boolean>(Boolean.TRUE, answerStartLatch, null, answerDoneLatch);
      BlockingAnswer<Boolean> caller2Answer = new BlockingAnswer<Boolean>(new TimeoutException(caller1), answerDoneLatch, 0, null, null);
      handler.lockFromCluster("test", caller1, 1000);
      expectLastCall().andAnswer(caller1Answer);
      handler.lockFromCluster("test", caller2, 1000);

     
View Full Code Here

Examples of org.jboss.netty.handler.timeout.TimeoutException

  public static int blocking() throws InterruptedException {
    lock.lock();
    try {
      waiting.signal();
      if (!wait.await(2, TimeUnit.SECONDS)) {
        throw new TimeoutException();
      }
    } finally {
      lock.unlock();
    }
    return 1;
View Full Code Here

Examples of org.jgroups.TimeoutException

        return "foo(): OK";
    }

    public Object bar() throws Exception {
        System.out.println("-- bar()");
        throw new TimeoutException("this is an exception");
    }
View Full Code Here

Examples of org.jnode.util.TimeoutException

                dev.isPrimary(), dev.isMaster(), cdb.toByteArray(), data,
                dataOffset);
            bus.executeAndWait(cmd, timeout);

            if (!cmd.isFinished()) {
                throw new TimeoutException("Timeout in SCSI command");
            } else if (cmd.hasError()) {
                throw new SCSIException("Command error 0x" + NumberUtils.hex(cmd.getError(), 2));
            } else {
                return cmd.getDataTransfered();
            }
View Full Code Here

Examples of org.jtestserver.common.protocol.TimeoutException

           
//            ByteBuffer bb = ByteBuffer.allocate(command.length() * CHAR_SIZE + INT_SIZE);
//            bb.putInt(command.length()).asCharBuffer().append(command);
//            socket.getChannel().send(bb, socket.getRemoteSocketAddress());
        } catch (SocketTimeoutException e) {
            throw new TimeoutException("timeout in receive", e);
        } catch (IOException e) {
            throw new ProtocolException("error in receive", e);
        }
    }
View Full Code Here

Examples of org.latexlab.clsi.client.TimeoutException

      elapsed ++;
      if (elapsed > timeout) {
        timer.cancel();
        elapsed = 0;
        if (handler != null) {
        handler.onFailure(new TimeoutException("The compile operation exceeded the allowed " + timeout + " seconds timeout value."));
        }
      } else {
          checkResponse();
      }
      }
View Full Code Here

Examples of org.mindswap.pellet.exceptions.TimeoutException

    }
   
    long elapsed = getElapsed();
   
    if (timeout != NO_TIMEOUT && elapsed > timeout) {
      throw new TimeoutException("Running time of "+name+" exceeded timeout of "+timeout);
    }
   
    if (parent != null)
        parent.check();   
  }
View Full Code Here

Examples of org.modeshape.jcr.TimeoutException

                } catch (org.infinispan.util.concurrent.TimeoutException e) {
                    if (txn != null) {
                        txn.rollback();
                    }
                    if (repeat <= 0) {
                        throw new TimeoutException(e.getMessage(), e);
                    }
                    Thread.sleep(PAUSE_TIME_BEFORE_REPEAT_FOR_LOCK_ACQUISITION_TIMEOUT);
                    continue;
                } catch (NotSupportedException err) {
                    // No nested transactions are supported ...
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.