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

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


     * @param broker
     */
    public BrokerContainerImpl(Broker broker, BrokerContext context) {
        this.broker = broker;
        this.context = context;
        this.clientIds = new ConcurrentHashMap();
        this.consumerInfos = new ConcurrentHashMap();
        this.producerInfos = new ConcurrentHashMap();
        this.transportConnectors = new CopyOnWriteArrayList();
        this.networkConnectors = new CopyOnWriteArrayList();
        this.broker.addCapacityEventListener(this);

        // lets register ourselves with the context
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);

         InvocationRequest ir =
            new InvocationRequest(invokerSessionID, null, "$PING$", requestClients, null, null);

         invoker.invoke(ir);
View Full Code Here

    private TreeCache cache;
    private boolean versioningImplicit = true;

    public TransactionWorkspaceImpl()
    {
        nodes = new ConcurrentHashMap();
    }
View Full Code Here

      /* Use the catalog for the serial binding. */
      catalog = new StoredClassCatalog(catalogDb);
      serialBinding = new SerialBinding(catalog, null);

      /* Start with a fresh transaction map. */
      txnMap = new ConcurrentHashMap();
   }
View Full Code Here

      defaultMaxDeliveryAttempts = sp.getDefaultMaxDeliveryAttempts();

      defaultRedeliveryDelay = sp.getDefaultRedeliveryDelay();

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

      defaultMaxDeliveryAttempts = sp.getDefaultMaxDeliveryAttempts();

      defaultRedeliveryDelay = sp.getDefaultRedeliveryDelay();

      deliveries = new ConcurrentHashMap();
   }
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();
      }
     
      replyExecutor = executorFactory.getExecutor("jbm-reply-executor");
View Full Code Here

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

      Map clientsClone = new ConcurrentHashMap(clientSessionIds);
      Map requestClients = new ConcurrentHashMap();
      requestClients.put(ClientHolder.CLIENT_HOLDER_KEY, clientsClone);
      requestClients.put(LeasePinger.LEASE_PINGER_ID, leasePingerId);
      requestClients.put(TIME_STAMP, Long.toString(System.currentTimeMillis()));

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

        }

        synchronized(routingTable) {
            Map mbrs=(Map)routingTable.get(groupname);
            if(mbrs == null) {
                mbrs=new ConcurrentHashMap();
                mbrs.put(logical_addr, entry);
                routingTable.put(groupname, mbrs);
            }
            else {
                AddressEntry tmp=(AddressEntry)mbrs.get(logical_addr);
View Full Code Here

TOP

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

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.