Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3703

Replace use of class Valve with standard JDK ReentrantReadWriteLock in class Topic.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 5.5.1
    • 5.6.0
    • Broker
    • None

    Description

      The Topic class uses an old AMQ class Valve that is essentially a pre JDK 1.5 Read / Write lock. The JDK RW lock is much more efficient than ours using only a single CAS operation in many cases when multiple readers need access to the lock as opposed to the Valve class that requires all threads to synchronize and possibly wait on a monitor.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: