Examples of wait()


Examples of com.sun.jini.test.spec.iiop.util.TestRemoteInterface.wait()

        Unexporter u = new Unexporter(ie3, false);
        logger.log(Level.FINE,
                "Start thread which will invoke unexport method"
                + " of constructed IiopExporter3 with 'false' value...");
        u.start();
        stub.wait(new Integer(5000));
        uRes = u.getResult();

        if (!uRes) {
            // FAIL
            throw new TestException(

Examples of com.sun.jini.test.spec.jrmp.util.TestRemoteInterface.wait()

        Unexporter u = new Unexporter(je3, false);
        logger.log(Level.FINE,
                "Start thread which will invoke unexport method"
                + " of constructed JrmpExporter3 with 'false' value...");
        u.start();
        stub.wait(new Integer(5000));
        uRes = u.getResult();

        if (uRes) {
            // FAIL
            throw new TestException(

Examples of com.sun.sgs.client.simple.SimpleClient.wait()

    "host", "localhost",
    "port", Integer.toString(5382),
    "connectTimeout", Long.toString(TIMEOUT));
  client.login(props);
  synchronized (client) {
      client.wait(TIMEOUT * 2);
  }
  assertTrue(listener.disconnected);
  assertEquals(0, listener.getPasswordAuthentication);
  if (listener.disconnectReason == null) {
      fail("Received null disconnect reason");

Examples of com.thoughtworks.selenium.Wait.wait()

 
  //waitFor_ methods
  public boolean waitForEditable(String locator) {
    Wait w = new WaitForElementToBeEditable(locator);
    try {
      w.wait("Element " + locator + " not editable after " + timeoutSeconds + " seconds", Long.parseLong(timeoutMilliseconds));
    }
    catch (SeleniumException e) {
      if (isKnownSeleniumBug(e)) {
        waitForEditable(locator);
      }

Examples of commonj.work.WorkItem.wait()

                  status = workItem.getStatus(  );
                  while ( ( status != WorkEvent.WORK_COMPLETED ) && ( status != WorkEvent.WORK_REJECTED ) )
                  {
                     try
                     {
                        workItem.wait(  );
                     }
                     catch ( InterruptedException e )
                     {
                        // not sure if this is the right thing to do
                        return false;

Examples of de.sciss.util.Flag.wait()

    synchronized( threadRunning ) {
      if( threadRunning.isSet() ) {  // i.e. premature dialog cancel
        keepThreadRunning.set( false );
        try {
          threadRunning.wait();
        }
        catch( InterruptedException e1 ) { /* ignore */ }
        return;
      }
    }

Examples of dovetaildb.util.MutableInt.wait()

        val = map.get(i);
      }
      synchronized(val)  {
        while (val.get() == -1) {
          try {
            val.wait();
          } catch (InterruptedException e) {
            throw new RuntimeException(e);
          }
        }
        val.incr();

Examples of edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicInteger.wait()

            while (count.get() < NUMBER) {
                if (waitTime <= 0) {
                    break;
                }
                else {
                    count.wait(waitTime);
                    waitTime = maxWaitTime - (System.currentTimeMillis() - start);
                }
            }
        }
        assertTrue("Unexpected count: " + count, count.get() == NUMBER);

Examples of edu.vt.rt.hyflow.core.tm.dtl2realtime.DummyObject.wait()

                if(earlierDeadline(current, deadline) == DeadlineStatus.EARLIER) {
                  remainingTime.setTime(deadline);
                  remainingTime.subtract(current);

                  long milliSecRemaining = remainingTime.getSeconds()*1000 + remainingTime.getNanoseconds()/ 1000000;
                  object.wait(milliSecRemaining);
                  Logger.debug("Thread " + threadID + " Wait is over ");
                } else
                  Logger.debug("Thread " + threadID + " did not wait ");

              } catch(InterruptedException ex) {

Examples of intf.ccacore.XCATComponentID.wait()

    logger.finest("waiting to receive ComponentID");

    // wait to receive the ComponentID from remote component
    long timeout = properties.getLong("timeout", DEFAULT_TIMEOUT);
    logger.finest("received timeout: " + timeout);
    cid.wait(timeout);
 
    logger.finest("woken up after waiting to receive ComponentID");
  } catch (InterruptedException ie) {
    logger.severe(ie.toString(), ie);
  }
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.