Examples of TimeOut


Examples of org.jboss.util.timeout.Timeout

         Iterator iter = clone.iterator();

         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();

            timeout.cancel();
           
            if (needRemove) {
               if (timeout instanceof TimeoutExt) {
                  TimeoutExt te = (TimeoutExt)timeout;
                  DeliverRefTimeoutTarget target = (DeliverRefTimeoutTarget)te.getTimeoutTarget();
View Full Code Here

Examples of org.jboss.util.timeout.Timeout

         // Schedule the cancel to actually occur at the specified time. Need to synchronize to
         // prevent timeout being removed before it is added.
         synchronized (scheduledDeliveries)
         {
            Timeout timeout =
               MessagingTimeoutFactory.instance.getFactory().
                  schedule(ref.getScheduledDeliveryTime(), new DeliverRefTimeoutTarget(ref));

            scheduledDeliveries.add(timeout);
         }
View Full Code Here

Examples of org.jemmy.env.Timeout

                    Logger.getLogger(Browser.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }, "FX app launch thread").start();

        new Waiter(new Timeout("launch start waiter", 10000)).ensureState(new State<Boolean>() {
            public Boolean reached() {
                try {
                    Thread.sleep(100); // otherwise mac doesn't start
                } catch (InterruptedException ex) {
                }
View Full Code Here

Examples of org.junit.rules.Timeout

    try {
      waitLonger = Integer.parseInt(System.getProperty("timeout.factor"));
    } catch (NumberFormatException exception) {
      log.warn("Could not parse timeout.factor, defaulting to no timeout.");
    }
    return new Timeout(waitLonger * defaultTimeoutSeconds() * 1000);
  }
View Full Code Here

Examples of org.mockito.verification.Timeout

     * @param millis - time span in millis
     *
     * @return verification mode
     */
    public static VerificationWithTimeout timeout(int millis) {
        return new Timeout(millis, VerificationModeFactory.times(1));
    }      
View Full Code Here

Examples of org.mortbay.thread.Timeout

        /* ------------------------------------------------------------ */
        SelectSet(int acceptorID) throws Exception
        {
            _setID=acceptorID;

            _idleTimeout = new Timeout();
            _idleTimeout.setDuration(getMaxIdleTime());
            _retryTimeout = new Timeout();
            _retryTimeout.setDuration(0L);

            // create a selector;
            _selector = Selector.open();
            _changes = new ArrayList[] {new ArrayList(),new ArrayList()};
View Full Code Here

Examples of org.netbeans.jemmy.Timeout

    public void scrollToMinimum(ComponentOperator oper, int orientation) {
  startDragging(oper);
  Point pnt = new Point(0, 0);
  drag(oper, pnt);
  Timeout sleepTime = oper.getTimeouts().create("Waiter.TimeDelta");
  while(((JScrollBarOperator)oper).getValue() >
        ((JScrollBarOperator)oper).getMinimum()) {
      sleepTime.sleep();
  }
  drop(oper, pnt);
    }
View Full Code Here

Examples of org.omg.CORBA.TIMEOUT

            catch (IOException ex)
            {
                tryToClose(socket);
              if (useTimeout && System.currentTimeMillis() > expireTime)
              {
                throw new TIMEOUT("couldn't open socket within " + timeout + ". Last exception details: " + ex.toString());
              }
            }
        }

        if (logger.isWarnEnabled())
View Full Code Here

Examples of org.rhq.core.communications.command.annotation.Timeout

         */
        private Long determineTimeout(Method method) {
            Long ret_timeout = m_proxyHandlerTimeout;

            if (!m_proxyHandlerIgnoreAnnotations) {
                Timeout annotation = method.getAnnotation(Timeout.class);

                if (annotation == null) {
                    annotation = method.getDeclaringClass().getAnnotation(Timeout.class);
                }

                if (annotation != null) {
                    ret_timeout = Long.valueOf(annotation.value());
                }
            }

            return ret_timeout;
        }
View Full Code Here

Examples of org.xmlBlaster.util.Timeout

    */
   public final Timeout getSessionTimer() {
      if (this.sessionTimer == null) {
         synchronized(this) {
            if (this.sessionTimer == null)
               this.sessionTimer = new Timeout("XmlBlaster.SessionTimer");
         }
      }
      return this.sessionTimer;
   }
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.