|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorageEngineUserLockIF
Storage interface for user lock management.
N.b. The caller is responsible for synchronising access to the user lock info and client lock information (normally using a lock manager).
| Method Summary | |
|---|---|
void |
addClientLockReference(ClientThreadId clientId,
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 clientId,
ID objectId)
Remove a reference from a client to the given object. |
void |
saveLockInfo(UserLockInfo info)
Save an updated lock information. |
| Method Detail |
|---|
UserLockInfo getLockInfo(ID id)
id - The id of the lock object.
void saveLockInfo(UserLockInfo info)
info - The update lock information to save.void clearAll()
void addClientLockReference(ClientThreadId clientId,
ID objectId)
clientId - The target client threadobjectId - The object being referenced.
void removeClientLockReference(ClientThreadId clientId,
ID objectId)
clientId - The target client.objectId - The object being referenced.java.util.Set<ClientThreadIdRef> getClientLockSet(ClientId clientId)
clientId - The target client id.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||