Code example for ReentrantReadWriteLock

Methods: readLockwriteLock

	private final AtomicLong totalExecutionTime = new AtomicLong();
	private final Lock readLock;
	private final Lock writeLock;
		final ReadWriteLock lock = new ReentrantReadWriteLock();
		this.readLock = lock.readLock();
		this.writeLock = lock.writeLock();
	ConcurrentNaturalIdCacheStatisticsImpl(Region region) {
		super( region.getName() );
		this.region = region;
	public long getHitCount() { 
		return this.hitCount.get();
Connect your IDE to all the code out there  Get Codota for Java