1 21 22 package org.apache.derby.iapi.services.locks; 23 24 import org.apache.derby.iapi.util.Matchable; 25 import org.apache.derby.iapi.error.StandardException; 26 import org.apache.derby.iapi.services.property.PropertySetCallback; 27 import java.util.Enumeration ; 28 29 30 38 public interface LockFactory extends PropertySetCallback { 39 40 77 public boolean lockObject(Object compatabilitySpace, Object group, Lockable ref, Object qualifier, int timeout) 78 throws StandardException; 79 80 110 113 139 public boolean lockObject(Object group, Lockable ref, Object qualifier, int timeout, Latch latch) 140 throws StandardException; 141 142 153 public int unlock(Object compatabilitySpace, Object group, Lockable ref, Object qualifier); 154 155 160 public void unlockGroup(Object compatabilitySpace, Object group); 161 162 165 public void unlockGroup(Object compatabilitySpace, Object group, Matchable key); 166 167 170 public void transfer(Object compatabilitySpace, Object oldGroup, Object newGroup); 171 172 175 public boolean anyoneBlocked(); 176 177 184 public boolean areLocksHeld(Object compatabilitySpace, Object group); 185 186 189 public boolean areLocksHeld(Object compatabilitySpace); 190 191 192 213 public boolean latchObject(Object compatabilitySpace, Lockable ref, Object qualifier, int timeout) 214 throws StandardException; 215 216 219 public void unlatch(Latch heldLatch); 220 221 222 259 public boolean zeroDurationlockObject(Object compatabilitySpace, Lockable ref, Object qualifier, int timeout) 260 throws StandardException; 261 262 265 public boolean isLockHeld(Object compatabilitySpace, Object group, Lockable ref, Object qualifier); 266 267 283 public void setLimit(Object compatabilitySpace, Object group, int limit, Limit callback); 284 285 288 public void clearLimit(Object compatabilitySpace, Object group); 289 290 293 public Enumeration makeVirtualLockTable(); 294 295 } 296 297 298 | Popular Tags |