A special implementation of {@code Synchronizer} based on the JDK's{@code ReentrantReadWriteLock} class.
This class manages a {@code ReadWriteLock} object internally. The methods ofthe {@code Synchronizer} interface are delegated to this lock. So this classbehaves in the same way as documented for {@code ReentrantReadWriteLock}.
Using this {@code Synchronizer} implementation is appropriate to makeconfiguration objects thread-safe. This means that multiple threads can read configuration data in parallel; if one thread wants to update the configuration, this happens with an exclusive lock.
@version $Id: ReadWriteSynchronizer.java 1624601 2014-09-12 18:04:36Z oheger $ @since 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|