1 21 22 package org.apache.derby.impl.services.locks; 23 24 import org.apache.derby.iapi.services.locks.Lockable; 25 import org.apache.derby.iapi.services.locks.Latch; 26 import java.util.List ; 27 28 public interface Control { 29 30 public Lockable getLockable(); 31 32 public LockControl getLockControl(); 33 34 public Lock getLock(Object compatabilitySpace, Object qualifier); 35 36 41 public Control shallowClone(); 42 44 public ActiveLock firstWaiter(); 45 46 public boolean isEmpty(); 47 48 public boolean unlock(Latch lockInGroup, int unlockCount); 49 50 public void addWaiters(java.util.Dictionary waiters); 51 52 public Lock getFirstGrant(); 53 54 public List getGranted(); 55 56 public List getWaiting(); 57 58 public boolean isGrantable(boolean otherWaiters, Object compatabilitySpace, Object qualifier); 59 60 61 } 62 | Popular Tags |