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

Examples of EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$EntrySet


     
      defaultMaxDeliveryAttempts = sp.getDefaultMaxDeliveryAttempts();
     
      defaultRedeliveryDelay = sp.getDefaultRedeliveryDelay();
     
      deliveries = new ConcurrentHashMap();
   }
View Full Code Here


     
      this.messageStore = store;
     
      this.idManager = idManager;
     
      map = new ConcurrentHashMap();       
   }
View Full Code Here

    
     Map ids = (Map)recoveryArea.get(nid);
    
     if (ids == null)
     {
       ids = new ConcurrentHashMap();
      
       recoveryArea.put(nid, ids);
     }
    
     ids.put(new Long(messageID), sessionID);
View Full Code Here

    
     Integer nid = new Integer(nodeID);
            
     if (!(ids instanceof ConcurrentHashMap))
     {
       ids = new ConcurrentHashMap(ids);
     }
    
     if (trace) { log.trace("Adding " + ids.size() + " ids to recovery area for node " + nodeID); }
    
     recoveryArea.put(nid, ids);
View Full Code Here

      defaultMaxDeliveryAttempts = sp.getDefaultMaxDeliveryAttempts();

      defaultRedeliveryDelay = sp.getDefaultRedeliveryDelay();

      deliveries = new ConcurrentHashMap();
   }
View Full Code Here

    /**
     * Default constructor
     *
     */
    public NetworkChannel(){
        this.consumerMap = new ConcurrentHashMap();
    }
View Full Code Here

    private String queuePrefix = "queue.";
    private String topicPrefix = "topic.";

    public Context getInitialContext(Hashtable environment) throws NamingException {
        // lets create a factory
        Map data = new ConcurrentHashMap();
        ActiveMQConnectionFactory factory = createConnectionFactory(environment);
        data.put("ConnectionFactory", factory);
        data.put("QueueConnectionFactory", factory);
        data.put("TopicConnectionFactory", factory);

        createQueues(data, environment);
        createTopics(data, environment);

        try {
            Broker broker = factory.getEmbeddedBroker();
            if (broker != null) {
                data.put("destinations", broker.getDestinationContext(environment));
            }
        }
        catch (JMSException e) {
            CommunicationException exception = new CommunicationException("Failed to access embedded broker: " + e);
            exception.setRootCause(e);
View Full Code Here

      synchronized (replicatedData)
      {
         copy = copyReplicatedData(replicatedData);
      }

      SharedState state = new SharedState(list, copy, new ConcurrentHashMap(nodeIDAddressMap));

      return StreamUtils.toBytes(state);
   }
View Full Code Here

     
      nameMaps = new HashMap();
     
      channelIDMap = new HashMap();
     
      nodeIDAddressMap = new ConcurrentHashMap();          
     
      if (clustered)
      {
        replicatedData = new HashMap();

         failoverMap = new ConcurrentHashMap();

         leftSet = new ConcurrentHashSet();
        
         newNodes = new ArrayList<Address>();
      }
View Full Code Here

            log.trace(this + " sending ping to server. Currently managing lease " +
               "for following clients:\n" + sb.toString());
         }

         Map clientsClone = new ConcurrentHashMap(clients);
         Map requestClients = new ConcurrentHashMap();
         requestClients.put(ClientHolder.CLIENT_HOLDER_KEY, clientsClone);

         if (leasePingerTimeout >= 0)
         {
            requestClients.put(ServerInvoker.TIMEOUT, Integer.toString(leasePingerTimeout));
         }
        
         InvocationRequest ir =
            new InvocationRequest(invokerSessionID, null, "$PING$", requestClients, null, null);
        
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$EntrySet

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.