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.