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

Examples of EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$BarrierLock


   public static void useClassCache(boolean flag)
   {
      if (flag == true)
      {
         classCache = Collections.synchronizedMap(new WeakHashMap());
         objectStreamClassCache = new ConcurrentReaderHashMap();
      }
      else
      {
         classCache = null;
         objectStreamClassCache = null;
View Full Code Here


   public ServerPeer() throws Exception
   {
      // Some wired components need to be started here
      version = Version.instance();

      sessions = new ConcurrentReaderHashMap();

      started = false;
   }
View Full Code Here

   // Constructors ---------------------------------------------------------------------------------

   public CallbackManager()
   {
      callbackHandlers = new ConcurrentReaderHashMap();
   }
View Full Code Here

    * @param dtdOrSchema the simple dtd/xsd file name, "ejb-jar.dtd"
    */
   public synchronized void registerLocalEntity(String id, String dtdOrSchema)
   {
      if( localEntities == null )
         localEntities = new ConcurrentReaderHashMap();
      localEntities.put(id, dtdOrSchema);
   }
View Full Code Here

   private Map getMBeanMap(String domain, boolean createIfMissing)
   {
      Map mbeanMap = (Map) domainMap.get(domain);
      if (mbeanMap == null && createIfMissing)
      {
        mbeanMap = new ConcurrentReaderHashMap();
        domainMap.put(domain, mbeanMap);
      }
      return mbeanMap;
   }
View Full Code Here

   {
      if (children == null)
      {
         if (getFqn().isRoot())
         {
            children = new ConcurrentReaderHashMap(64);
         }
         else
         {
            children = new ConcurrentReaderHashMap(4);
         }
      }
      return children;
   }
View Full Code Here

    * @param dtdOrSchema the simple dtd/xsd file name, "ejb-jar.dtd"
    */
   public synchronized void registerLocalEntity(String id, String dtdOrSchema)
   {
      if( localEntities == null )
         localEntities = new ConcurrentReaderHashMap();
      localEntities.put(id, dtdOrSchema);
   }
View Full Code Here

    * @param dtdOrSchema the simple dtd/xsd file name, "ejb-jar.dtd"
    */
   public synchronized void registerLocalEntity(String id, String dtdOrSchema)
   {
      if( localEntities == null )
         localEntities = new ConcurrentReaderHashMap();
      localEntities.put(id, dtdOrSchema);
   }
View Full Code Here

   {
      if (children == null)
      {
         if (getFqn().isRoot())
         {
            children = new ConcurrentReaderHashMap(64);
         }
         else
         {
            children = new ConcurrentReaderHashMap(4);
         }
      }
      return children;
   }
View Full Code Here

        // use the improved node type cache
        // (replace with: entCache = new EffectiveNodeTypeCacheImpl();
        // for the old one)
        entCache = new BitsetENTCacheImpl();
        registeredNTDefs = new ConcurrentReaderHashMap();
        propDefs = new ConcurrentReaderHashMap();
        nodeDefs = new ConcurrentReaderHashMap();

        // setup definition of root node
        rootNodeDef = createRootNodeDef();
        nodeDefs.put(rootNodeDef.getId(), rootNodeDef);
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap$BarrierLock

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.