1 24 package org.objectweb.jalisto.se.api.internal.multi; 25 26 import org.objectweb.jalisto.se.api.internal.DataWrapper; 27 import org.objectweb.jalisto.se.impl.lock.Lock; 28 29 import java.util.Collection ; 30 import java.util.Iterator ; 31 32 public interface LockTable { 33 Iterator getKeys(); 34 35 Lock getLockOrCreate(Object floid); 36 37 Lock getLock(Object floid); 38 39 DataWrapper getLockedValue(Object floid, Object sessionId); 40 41 void checkLocksForSession(Collection floids, Object sessionId); 42 43 boolean containsDeletedValue(Object floid, Object sessionId); 44 45 boolean containsLockedValue(Object floid, Object sessionId); 46 47 boolean hasLock(Object floid); 48 49 void publishLocks(); 50 51 void removeLockByFloid(Object floid); 52 53 boolean isEmpty(); 54 } 55 | Popular Tags |