Package com.semedy.reasoner.core.locks
Class PredicateCoreReadLock
java.lang.Object
com.semedy.reasoner.core.locks.PredicateCoreReadLock
- All Implemented Interfaces:
CoreReadLock
a read lock for edb for locking single predicates
- Author:
- angele
-
Constructor Summary
ConstructorDescriptionPredicateCoreReadLock
(Map<String, ReentrantReadWriteLock> predicateLocks, ReentrantReadWriteLock.ReadLock idblock, ReentrantReadWriteLock.ReadLock symboltablelock) -
Method Summary
-
Constructor Details
-
PredicateCoreReadLock
public PredicateCoreReadLock(Map<String, ReentrantReadWriteLock> predicateLocks, ReentrantReadWriteLock.ReadLock idblock, ReentrantReadWriteLock.ReadLock symboltablelock)
-
-
Method Details
-
lock
Description copied from interface:CoreReadLock
set read lock- Specified by:
lock
in interfaceCoreReadLock
- Parameters:
predicates
- , predicates to be lockedidb
- , should idb be lockedsymboltable
- , should symbol table be locked
-
lock
Description copied from interface:CoreReadLock
lock single predicate- Specified by:
lock
in interfaceCoreReadLock
-
unlock
Description copied from interface:CoreReadLock
unlock read lock- Specified by:
unlock
in interfaceCoreReadLock
- Parameters:
predicates
- , predicates to be unlockedidb
- , should idb be unlockedsymboltable
- , should symbol table be unlocked
-
unlock
Description copied from interface:CoreReadLock
unlock single predicate- Specified by:
unlock
in interfaceCoreReadLock
-
lock
public void lock()Description copied from interface:CoreReadLock
lock all- Specified by:
lock
in interfaceCoreReadLock
-
unlock
public void unlock()Description copied from interface:CoreReadLock
unlock- Specified by:
unlock
in interfaceCoreReadLock
-