Package EDU.oswego.cs.dl.util.concurrent

Examples of EDU.oswego.cs.dl.util.concurrent.SynchronizedLong


        }
    }

    private void addService(String name) {
        long timestamp = System.currentTimeMillis();
        SynchronizedLong activeTime = (SynchronizedLong) keepAliveMap.get(name);
        if (activeTime == null) {
            activeTime = new SynchronizedLong(0);
            keepAliveMap.put(name, activeTime);
        }
        activeTime.set(timestamp);
    }
View Full Code Here


    private void checkNodesAlive() throws JMSException {
        long timestamp = System.currentTimeMillis();
        long timeout = timestamp - timeoutExpiration;
        for (Iterator i = keepAliveMap.entrySet().iterator();i.hasNext();) {
            Map.Entry entry = (Map.Entry) i.next();
            SynchronizedLong activeTime = (SynchronizedLong) entry.getValue();
            if (activeTime.get() < timeout) {
                String name = entry.getKey().toString();
                removeService(name);
                log.warn(serviceName + " Expiring node: " + name);
            }
        }
View Full Code Here

/*      */
/*  225 */     this.defaultRedeliveryDelay = this.sp.getDefaultRedeliveryDelay();
/*      */
/*  227 */     this.deliveries = new ConcurrentHashMap();
/*      */
/*  229 */     this.deliveryIdSequence = new SynchronizedLong(0L);
/*      */   }
View Full Code Here

/*      */         {
/*  644 */           binding.queue.removeStrandedReferences(oldSessionID);
/*      */         }
/*      */       }
/*      */
/*  648 */       this.deliveryIdSequence = new SynchronizedLong(maxDeliveryId + 1L);
/*      */     }
/*      */     catch (Throwable t)
/*      */     {
/*  652 */       throw ExceptionUtil.handleJMSInvocation(t, this + " recoverDeliveries");
/*      */     }
View Full Code Here

     
      defaultRedeliveryDelay = sp.getDefaultRedeliveryDelay();
     
      deliveries = new ConcurrentHashMap();
     
      deliveryIdSequence = new SynchronizedLong(0);
   }
View Full Code Here

             // Remove any stranded refs corresponding to refs that might have been in the client buffer but not consumed
             binding.queue.removeStrandedReferences(oldSessionID);
           }
         }
        
         this.deliveryIdSequence = new SynchronizedLong(maxDeliveryId + 1);
      }
      catch (Throwable t)
      {
         throw ExceptionUtil.handleJMSInvocation(t, this + " recoverDeliveries");
      }
View Full Code Here

        }
    }

    private void addService(String name) {
        long timestamp = System.currentTimeMillis();
        SynchronizedLong activeTime = (SynchronizedLong) keepAliveMap.get(name);
        if (activeTime == null) {
            activeTime = new SynchronizedLong(0);
            keepAliveMap.put(name, activeTime);
        }
        activeTime.set(timestamp);
    }
View Full Code Here

    private void checkNodesAlive() throws JMSException {
        long timestamp = System.currentTimeMillis();
        long timeout = timestamp - timeoutExpiration;
        for (Iterator i = keepAliveMap.entrySet().iterator();i.hasNext();) {
            Map.Entry entry = (Map.Entry) i.next();
            SynchronizedLong activeTime = (SynchronizedLong) entry.getValue();
            if (activeTime.get() < timeout) {
                String name = entry.getKey().toString();
                removeService(name);
                log.warn(serviceName + " Expiring node: " + name);
            }
        }
View Full Code Here

        }
    }

    private void addService(String name) {
        long timestamp = System.currentTimeMillis();
        SynchronizedLong activeTime = (SynchronizedLong) keepAliveMap.get(name);
        if (activeTime == null) {
            activeTime = new SynchronizedLong(0);
            keepAliveMap.put(name, activeTime);
        }
        activeTime.set(timestamp);
    }
View Full Code Here

    private void checkNodesAlive() throws JMSException {
        long timestamp = System.currentTimeMillis();
        long timeout = timestamp - timeoutExpiration;
        for (Iterator i = keepAliveMap.entrySet().iterator();i.hasNext();) {
            Map.Entry entry = (Map.Entry) i.next();
            SynchronizedLong activeTime = (SynchronizedLong) entry.getValue();
            if (activeTime.get() < timeout) {
                String name = entry.getKey().toString();
                removeService(name);
                log.warn("Expiring node: " + name);
            }
        }
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.SynchronizedLong

Copyright © 2018 www.massapicom. 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.