1 package org.apache.ojb.odmg.locking; 2 3 17 18 import org.apache.ojb.broker.util.configuration.Configurable; 19 import org.apache.ojb.odmg.TransactionImpl; 20 21 import java.util.Collection ; 22 23 26 public interface LockMap extends Configurable 27 { 28 32 public LockEntry getWriter(Object obj); 33 34 38 public Collection getReaders(Object obj); 39 40 44 public boolean addReader(TransactionImpl tx, Object obj); 45 46 50 public void removeReader(TransactionImpl tx, Object obj); 51 52 56 public void removeWriter(LockEntry writer); 57 58 62 public boolean upgradeLock(LockEntry reader); 63 64 68 public boolean setWriter(TransactionImpl tx, Object obj); 69 70 74 public boolean hasReadLock(TransactionImpl tx, Object obj); 75 } 76 | Popular Tags |