Examples of Timeout


Examples of org.jboss.jca.common.api.metadata.ds.TimeOut

   private XaDataSource parseXADataSource(XMLStreamReader reader) throws XMLStreamException, ParserException,
      ValidateException
   {
      TransactionIsolation transactionIsolation = null;
      Map<String, String> xaDataSourceProperty = new HashMap<String, String>();
      TimeOut timeOutSettings = null;
      DsSecurity securitySettings = null;
      Statement statementSettings = null;
      Validation validationSettings = null;
      String urlDelimiter = null;
      String urlSelectorStrategyClassName = null;
View Full Code Here

Examples of org.jboss.netty.util.Timeout

    result = q.offer((T) e);
    if (q.size() >= _sizes[group])
    {
      // if queue is full remove an element and undo its timer
      T o = q.remove();
      Timeout timer = _timers.remove(o);
      if (timer != null)
        timer.cancel();
      Constants.ahessianLogger.warn("queue overflow -> removed "+e);
    }
    if (result)
      _last = e;
   
    if (_timer != null && result && _timeouts[group] > 0)
    {
      Timeout timer = _timer.newTimeout(new TimerTask()
      {

        public void run(Timeout arg0) throws Exception
        {
          _lock.lock();
View Full Code Here

Examples of org.jboss.netty.util.Timeout

    if (q != null)
    {
      result = q.poll();
      if (result != null)
      {
        Timeout timer = _timers.remove(result);
        if (timer != null)
          timer.cancel();
      }
    }
    return result;
  }
View Full Code Here

Examples of org.jboss.netty.util.Timeout

    _timeout = timeOut;
  }
 
  public Timeout removeTimeout()
  {
    Timeout result = _timeout;
    _timeout = null;
    return result;
  }
View Full Code Here

Examples of org.jboss.netty.util.Timeout

  {
    _hasSession = true;
    session.setClosed(false);
   
    // if we have a session timeout set, cancel it.
    Timeout timeOut = session.removeTimeout();
    if (timeOut != null)
      timeOut.cancel();
   
    // check if the session is already connected to a channel
    Channel c = pipeline.getChannel();
    if (c != null && c.isOpen())
    {
View Full Code Here

Examples of org.jboss.netty.util.Timeout

    _sessionId = "";
    _connectedEvent = null;
    _channel = null;
    if (_sessionTimeout > 0)
    {
      Timeout timeOut = _timer.newTimeout(new TimerTask()
      {

        public void run(Timeout arg0) throws Exception
        {
          ((Session)ctx.getAttachment()).invalidate();
View Full Code Here

Examples of org.jboss.netty.util.Timeout

 
  /**
   * Resets the timeout on this channel
   */
  protected void resetTimer() {
    Timeout t = timerTimeout.getAndSet(timer.newTimeout(this, this.timeout, TimeUnit.MILLISECONDS));
    if(t!=null) {
      t.cancel();
    }
  }
View Full Code Here

Examples of org.jboss.netty.util.Timeout

  /**
   * @return
   * @see org.jboss.netty.channel.Channel#close()
   */
  public ChannelFuture close() {
    Timeout t = timerTimeout.getAndSet(null);
    if(t!=null) t.cancel();
    return channel.close();
  }
View Full Code Here

Examples of org.jboss.util.timeout.Timeout

        
         Iterator iter = clone.iterator();
        
         while (iter.hasNext())
         {
            Timeout timeout = (Timeout)iter.next();
           
            timeout.cancel();
         }
        
         scheduledDeliveries.clear();
      }
   }
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
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.