Examples of wait()


Examples of org.drools.runtime.StatefulKnowledgeSession.wait()

    @Override
    public void waitForFlowToFinishIndefinitely(long id) throws InterruptedException, WorkflowException {
        StatefulKnowledgeSession session = getSessionForCurrentContext();
        synchronized (session) {
            while (session.getProcessInstance(id) != null) {
                session.wait();
            }
        }
    }

    @Override

Examples of org.eclipse.ecf.tests.discovery.listener.TestServiceTypeListener.wait()

    synchronized (testTypeListener) {
      // register a service which we expect the test listener to get notified of
      registerService();
      try {
        testTypeListener.wait(waitTimeForProvider);
      } catch (final InterruptedException e) {
        Thread.currentThread().interrupt();
        fail("Some discovery unrelated threading issues?");
      }
    }

Examples of org.eclipse.ecf.tests.discovery.listener.ThreadTestServiceListener.wait()

      ServiceRegistration registration = ctxt.registerService(IServiceListener.class.getName(), tsl, props);
     
      // IServiceListener#triggerDiscovery should have triggered re-discovery
      // register a service which we expect the test listener to get notified of
      try {
        tsl.wait(waitTimeForProvider);
      } catch (final InterruptedException e) {
        Thread.currentThread().interrupt();
        fail("Some discovery unrelated threading issues?");
      } finally {
        registration.unregister();

Examples of org.eclipse.persistence.internal.identitymaps.CacheKey.wait()

                        break;
                    }
                    synchronized (cacheKey) {
                        if (cacheKey.isAcquired()) {
                            try {
                                cacheKey.wait(10);
                            } catch (InterruptedException e) {
                                //ignore and return
                            }
                        }
                        domainObject = cacheKey.getObject();

Examples of org.ejbca.core.model.ca.caadmin.extendedcaservices.ExtendedCAServiceNotActiveException.wait()

        }
        if ( se==null ) {
            final ExtendedCAServiceNotActiveException e = new ExtendedCAServiceNotActiveException("No ocsp signing key for caid "+caid);
            synchronized(e) {
                try {
                    e.wait(10000); // calm down the client
                } catch (InterruptedException e1) {
                    throw new Error("Should never ever happend", e);
                }
            }
            throw e;

Examples of org.geoserver.security.event.UserGroupLoadedListener.wait()

        xmlFile.setLastModified(xmlFile.lastModified()+2000)
       
        // wait for the listener to unlock when
        // service 2 triggers a load event
        synchronized (listener) {
            listener.wait();           
        }
       
        // here comes the magic !!!
        assertTrue(service2.getUserGroups().size()==1);
        assertTrue(service2.getGroupCount()==1);

Examples of org.ggf.drmaa.Session.wait()

        
         System.out.println("Your job has been submitted with id " + id);
        
         session.deleteJobTemplate(jt);
        
         JobInfo info = session.wait(id, Session.TIMEOUT_WAIT_FOREVER);
        
         if (info.wasAborted()) {
            System.out.println("Job " + info.getJobId() + " never ran");
         } else if (info.hasExited()) {
            System.out.println("Job " + info.getJobId() +

Examples of org.h2.engine.Database.wait()

        while (true) {
            try {
                if (database.isMultiThreaded()) {
                    Thread.sleep(sleep);
                } else {
                    database.wait(sleep);
                }
            } catch (InterruptedException e1) {
                // ignore
            }
            long slept = System.nanoTime() / 1000000 - now;

Examples of org.infinispan.persistence.TaskContextImpl.wait()

         }
      });
      while (tasksSubmitted.longValue() > tasksFinished.longValue()) {
         synchronized (context) {
            try {
               context.wait(100);
            } catch (InterruptedException e) {
               log.error("Iteration was interrupted", e);
               Thread.currentThread().interrupt();
               return;
            }

Examples of org.itsnat.impl.core.clientdoc.ClientDocumentAttachedServerFormImpl.wait()

                (ClientDocumentAttachedServerFormImpl)getClientDocumentAttachedServer();
        synchronized(clientDoc)
        {
            if (!clientDoc.isMarkupLoaded())
            {
                try { clientDoc.wait(clientDoc.getTimeoutLoadMarkup()); }
                catch(InterruptedException ex){ throw new ItsNatException(ex); }

                if (!clientDoc.isMarkupLoaded())
                    throw new ItsNatException("Timeout, client markup is not received",clientDoc);
            }
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.