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

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


      // We're using reentrant locks because we will need to to acquire read locks after write locks
      // have been already acquired. There is also a case when a readLock will be promoted to
      // writeLock when a failover occurs; using reentrant locks will make this usage transparent
      // for the API, we just close the valve and the read lock is promoted to write lock.
      lock = new ReentrantWriterPreferenceReadWriteLock();

      this.writeLockAttemptTimeout = attemptTiemout;

      if (trace)
      {
View Full Code Here


                         TransactionRepository tr, FilterFactory filterFactory,
                         ConditionFactory conditionFactory)
   {
      super (ds, tm, sqlProperties, createTablesOnStartup);

      lock = new ReentrantWriterPreferenceReadWriteLock();

      nameMaps = new LinkedHashMap();

      conditionMap = new LinkedHashMap();
View Full Code Here

public class ReadWriteLockTest extends TestCase {
    Sync rl, wl;

    protected void setUp() throws Exception {
        super.setUp();
        ReadWriteLock l=new ReentrantWriterPreferenceReadWriteLock();
        rl=l.readLock();
        wl=l.writeLock();
    }
View Full Code Here

     
      this.channelIDManager = channelIDManager;
     
      this.clusterNotifier = clusterNotifier;

      lock = new ReentrantWriterPreferenceReadWriteLock();
      
      waitForBindUnbindLock = new Object();
   }
View Full Code Here

     
      this.channelIDManager = channelIDManager;
     
      this.clusterNotifier = clusterNotifier;

      lock = new ReentrantWriterPreferenceReadWriteLock();
      
      waitForBindUnbindLock = new Object();
   }
View Full Code Here

     
      this.channelIDManager = channelIDManager;
     
      this.clusterNotifier = clusterNotifier;

      lock = new ReentrantWriterPreferenceReadWriteLock();
      
      waitForBindUnbindLock = new Object();
   }
View Full Code Here

     
      this.channelIDManager = channelIDManager;
     
      this.clusterNotifier = clusterNotifier;

      lock = new ReentrantWriterPreferenceReadWriteLock();
      
      waitForBindUnbindLock = new Object();
   }
View Full Code Here

      // We're using reentrant locks because we will need to to acquire read locks after write locks
      // have been already acquired. There is also a case when a readLock will be promoted to
      // writeLock when a failover occurs; using reentrant locks will make this usage transparent
      // for the API, we just close the valve and the read lock is promoted to write lock.
      lock = new ReentrantWriterPreferenceReadWriteLock();

      this.writeLockAttemptTimeout = attemptTiemout;

      if (trace)
      {
View Full Code Here

     
      this.channelIDManager = channelIDManager;
     
      this.clusterNotifier = clusterNotifier;

      lock = new ReentrantWriterPreferenceReadWriteLock();
      
      waitForBindUnbindLock = new Object();
   }
View Full Code Here

     
      this.channelIDManager = channelIDManager;
     
      this.clusterNotifier = clusterNotifier;

      lock = new ReentrantWriterPreferenceReadWriteLock();
      
      waitForBindUnbindLock = new Object();
   }
View Full Code Here

TOP

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

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.