Class SimpleCoreReadLock

java.lang.Object
com.semedy.reasoner.core.locks.SimpleCoreReadLock
All Implemented Interfaces:
CoreReadLock

public class SimpleCoreReadLock extends Object implements CoreReadLock
Read lock for core
Author:
Juergen
  • Constructor Details

    • SimpleCoreReadLock

      public SimpleCoreReadLock(Lock readLock, Thread[] holdsWriteLock)
  • Method Details

    • lock

      public void lock(Set<String> lockPredicates, boolean lockIDB, boolean lockSymbolTable)
      Description copied from interface: CoreReadLock
      set read lock
      Specified by:
      lock in interface CoreReadLock
      Parameters:
      lockPredicates - , predicates to be locked
      lockIDB - , should idb be locked
      lockSymbolTable - , should symbol table be locked
    • unlock

      public void unlock(Set<String> lockPredicates, boolean lockIDB, boolean lockSymbolTable)
      Description copied from interface: CoreReadLock
      unlock read lock
      Specified by:
      unlock in interface CoreReadLock
      Parameters:
      lockPredicates - , predicates to be unlocked
      lockIDB - , should idb be unlocked
      lockSymbolTable - , should symbol table be unlocked
    • lock

      public void lock(String predicate)
      Description copied from interface: CoreReadLock
      lock single predicate
      Specified by:
      lock in interface CoreReadLock
    • unlock

      public void unlock(String predicate)
      Description copied from interface: CoreReadLock
      unlock single predicate
      Specified by:
      unlock in interface CoreReadLock
    • lock

      public void lock()
      Description copied from interface: CoreReadLock
      lock all
      Specified by:
      lock in interface CoreReadLock
    • unlock

      public void unlock()
      Description copied from interface: CoreReadLock
      unlock
      Specified by:
      unlock in interface CoreReadLock