Code example for ReentrantReadWriteLock

Methods: readLockwriteLock

0
 
	private final Lock readLock;
	private final Lock writeLock;
 
	{ 
		ReadWriteLock lock = new ReentrantReadWriteLock();
		readLock = lock.readLock();
		writeLock = lock.writeLock();
	} 
 
	ConcurrentQueryStatisticsImpl(String query) {
		super(query);
	} 
 
	/** 
	 * queries executed to the DB 
	 */ 
	public long getExecutionCount() { 
		return executionCount.get();
	} 
Connect your IDE to all the code out there  Get Codota for Java