|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.database.persistent.berkeley.BDbStorageEngineUserLockImpl
public class BDbStorageEngineUserLockImpl
Constructor Summary | |
---|---|
BDbStorageEngineUserLockImpl(com.sleepycat.persist.EntityStore store)
|
Method Summary | |
---|---|
void |
addClientLockReference(ClientThreadId clientThreadId,
ID objectId)
Add a reference from a client to the given object. |
void |
clearAll()
Clear all lock information. |
java.util.Set<ClientThreadIdRef> |
getClientLockSet(ClientId clientId)
Return a set of client-threads -> ids for the given client, this is the list of objects the given client is attempting to lock, or has a lock on. |
UserLockInfo |
getLockInfo(ID id)
Retrieve the user lock information (lock queue) for the given id. |
void |
removeClientLockReference(ClientThreadId clientThreadId,
ID objectId)
Remove a reference from a client to the given object. |
void |
saveLockInfo(UserLockInfo info)
Save an updated lock information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BDbStorageEngineUserLockImpl(com.sleepycat.persist.EntityStore store)
Method Detail |
---|
public UserLockInfo getLockInfo(ID id)
StorageEngineUserLockIF
getLockInfo
in interface StorageEngineUserLockIF
id
- The id of the lock object.
public void saveLockInfo(UserLockInfo info)
StorageEngineUserLockIF
saveLockInfo
in interface StorageEngineUserLockIF
info
- The update lock information to save.public void clearAll()
StorageEngineUserLockIF
clearAll
in interface StorageEngineUserLockIF
public void addClientLockReference(ClientThreadId clientThreadId, ID objectId)
StorageEngineUserLockIF
addClientLockReference
in interface StorageEngineUserLockIF
clientThreadId
- The target client threadobjectId
- The object being referenced.public java.util.Set<ClientThreadIdRef> getClientLockSet(ClientId clientId)
StorageEngineUserLockIF
getClientLockSet
in interface StorageEngineUserLockIF
clientId
- The target client id.
public void removeClientLockReference(ClientThreadId clientThreadId, ID objectId)
StorageEngineUserLockIF
removeClientLockReference
in interface StorageEngineUserLockIF
clientThreadId
- The target client.objectId
- The object being referenced.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |