Examples of wait()


Examples of org.jboss.dmr.ModelNode.wait()

                            switch (s) {
                                case 1: return executeMultiOperation(resolved, operation, handler, operationExecutionContext);
                                case 2: handler.handleFailed(failureResult); return new BasicOperationResult();
                                case 3: throw new CancellationException();
                            }
                            failureResult.wait();
                        } catch(InterruptedException e) {
                            intr = true;
                            result.getCancellable().cancel();
                        }
                    }

Examples of org.jboss.test.jmx.invoker.Listener.wait()

      Listener listener = new Listener(10);
      server.addNotificationListener(getObjectName(), listener, new RunTimerFilter(), "runTimer");
      server.invoke(getObjectName(), "startTimer", null, null);
      synchronized( listener )
      {
         listener.wait(15000);
      }
      server.removeNotificationListener(getObjectName(), listener);
      int count = listener.getCount();
      assertTrue("Received 10 notifications, count="+count, count == 10);
   }

Examples of org.jboss.test.jmx.invoker.RMIListener.wait()

      RMIAdaptor server = (RMIAdaptor) getInitialContext().lookup("jmx/invoker/RMIAdaptor");
      server.addNotificationListener(getObjectName(), listener, null, "runTimer");
      server.invoke(getObjectName(), "startTimer", null, null);
      synchronized( listener )
      {
         listener.wait(15000);
      }
      server.removeNotificationListener(getObjectName(), listener);
      listener.unexport();
      int count = listener.getCount();
      assertTrue("Received 10 notifications, count="+count, count == 10);

Examples of org.jruby.ext.posix.POSIX.wait()

        Ruby runtime = recv.getRuntime();
        POSIX posix = runtime.getPosix();
        RubyArray results = recv.getRuntime().newArray();
       
        int[] status = new int[1];
        int result = posix.wait(status);
        while (result != -1) {
            results.append(runtime.newArray(runtime.newFixnum(result), RubyProcess.RubyStatus.newProcessStatus(runtime, status[0])));
            result = posix.wait(status);
        }
       

Examples of org.lealone.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.nanocontainer.deployer.FolderContentPoller.wait()

                                .with(same(noChildren));
        FolderContentPoller fileMonitor = new FolderContentPoller((FolderContentHandler) folderContentHandlerMock.proxy());

        fileMonitor.start();
        synchronized(fileMonitor) {
          fileMonitor.wait(200);
        }

        rootFolderMock.expects(once())
                      .method("close")
                      .withNoArguments();

Examples of org.sikuli.api.DesktopScreenRegion.wait()

        ScreenLocation labelLocation = Relative.to(event.getScreenRegion()).topLeft().above(20).getScreenLocation();
        canvas.clear().addLabel(labelLocation,txt).display(1);
      }         
    };

    ScreenRegion personIcon = s.wait(new ImageTarget(Images.PersonIcon),1000);   
    canvas.clear().addBox(personIcon).display(1);
   
    ScreenRegion statusIcon = Relative.to(personIcon).right(30).getScreenRegion();
    canvas.clear().addBox(personIcon).display(1);   

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.wait()

      try {
        System.out.println("Loading Spring Context...");
      Object obj = new ClassPathXmlApplicationContext("app-context.xml");
        System.out.println("Spring Context Loaded");
      synchronized (obj) {
        obj.wait();
      }
      } catch (Exception e) {
          e.printStackTrace();
      }
  }

Examples of org.teiid.dqp.internal.process.ThreadReuseExecutor.wait()

      final ThreadReuseExecutor pool = new ThreadReuseExecutor("test", 1); //$NON-NLS-1$
      FutureWork<Boolean> work1 = new FutureWork<Boolean>(new Callable<Boolean>() {
        public Boolean call() throws Exception {
          synchronized (pool) {
            while (pool.getSubmittedCount() < 4) {
              pool.wait();
            }
        }
          return true;
        }
    }, 0);

Examples of org.vertx.java.core.buffer.Buffer.wait()

                               });
                           }
                       });

            try {
                responseBody.wait(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
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.