Examples of wait()


Examples of EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean.wait()

        t.start();
        queue.close();
        try {
            synchronized (success) {
                if (!success.get()) {
                    success.wait(2000);
                }
            }
        }
        catch (Throwable e) {
            e.printStackTrace();

Examples of EDU.oswego.cs.dl.util.concurrent.SynchronizedInt.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 ch.qos.logback.access.testUtil.NotifyingListAppender.wait()

    assertEquals("hello world", result);

    NotifyingListAppender listAppender = (NotifyingListAppender) REQYEST_LOG_IMPL
        .getAppender("list");
    synchronized (listAppender) {
      listAppender.wait(100);
    }

    assertTrue(listAppender.list.size() > 0);
    IAccessEvent event = listAppender.list.get(0);
    assertEquals("127.0.0.1", event.getRemoteHost());

Examples of com.adito.security.SessionInfo.wait()

            }
            if(agent.waitForSync(500)) {
              return true;
            }
          }
          session.wait(500);
          left = left - 500;
        }
      } catch (InterruptedException e) {
      }
    }

Examples of com.alibaba.dubbo.rpc.RpcStatus.wait()

            int active = count.getActive();
            if (active >= max) {
                synchronized (count) {
                    while ((active = count.getActive()) >= max) {
                        try {
                            count.wait(remain);
                        } catch (InterruptedException e) {
                        }
                        long elapsed = System.currentTimeMillis() - start;
                        remain = timeout - elapsed;
                        if (remain <= 0) {

Examples of com.bloomberglp.blpapi.CorrelationID.wait()

      } catch (Exception ex) {
        _correlationIDMap.remove(cid);
        throw new OpenGammaRuntimeException("Unable to send request " + request, ex);
      }
      try {
        cid.wait();
      } catch (InterruptedException ex) {
        Thread.interrupted();
        throw new OpenGammaRuntimeException("Unable to process request " + request, ex);
      }
    }

Examples of com.dumbster.smtp.SimpleSmtpServer.wait()

            public void run() {
                // Block until the server socket is created
                synchronized (server) {
                    waitingThreadEnteredSynchronized.release();
                    try {
                        server.wait();
                    } catch (InterruptedException e) {
                        // Ignore don't care.
                    }
                    serverStarted.release();
                }

Examples of com.gargoylesoftware.htmlunit.html.HtmlPage.wait()

                countryList = autocompleteList.getByXPath("div/div/div/div/div");

                if (countryList.size() == 2) {
                    break;
                } else {
                    page.wait(500);
                }
            }
        }

        Assert.assertEquals(2, countryList.size());

Examples of com.hp.hpl.jena.query.QueryExecution.wait()

    {
        QueryExecution qExec = makeQExec("PREFIX ex: <" + ns + "> " +
        "SELECT * {?s ?p ?o . FILTER ex:wait(100) }") ;
        CancelThreadRunner thread = new CancelThreadRunner(qExec);
        thread.start();
        synchronized (qExec) { qExec.wait() ; }
        qExec.abort();
        synchronized (qExec) { qExec.notify() ; }
        assertEquals (1, thread.getCount()) ;
    }
   

Examples of com.mchange.v2.holders.ChangeNotifyingSynchronizedIntHolder.wait()

        try
            {
          while (counter.getValue() < sz)
              {
            //System.err.println( "counter.getValue(): " + counter.getValue() + "; sz: " + sz );
            counter.wait();
              }
          //System.err.println( "FINAL: counter.getValue(): " + counter.getValue() + "; sz: " + sz );
            }
        catch (InterruptedException e)
            {
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.