1 7 package org.jboss.cache.lock; 8 9 import org.jboss.cache.TreeCache; 10 11 12 19 public interface LockManager 20 { 21 22 26 boolean getDirtyReadsAllowed(); 27 28 void setDirtyReadsAllowed(boolean flag); 29 30 40 void getReadLock(TreeCache cache, String fqn, long timeout) throws TimeoutException; 41 42 53 void getWriteLock(TreeCache cache, String fqn, long timeout) 54 throws TimeoutException, UpgradeException; 55 56 void releaseLock(String fqn, boolean release_children); 57 58 } 59 | Popular Tags |