|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DBUserLockHandler
Lock handling for the MemoryDatabase.
Method Summary | |
---|---|
void |
acquire(ClientThreadId threadId,
ID objectId)
Process the given thread attempting to acquire the lock in the given object. |
void |
clientDisconnect(ClientId clientId)
|
void |
release(ClientThreadId threadId,
ID objectId)
Release the user lock on the given object |
void |
removeClientListener(ClientId clientId)
Remove the lock acquire listener for the given client. |
void |
setClientListener(ClientId clientId,
LockAcquiredListener listener)
Sets the client callback listener for a given client. |
void |
shutdown()
|
Method Detail |
---|
void removeClientListener(ClientId clientId)
clientId
- The client whose listener to remove.void release(ClientThreadId threadId, ID objectId)
threadId
- The releasing threadobjectId
- The id of the objectvoid setClientListener(ClientId clientId, LockAcquiredListener listener)
clientId
- The client to set the callback for.listener
- The listener to call on lock events pertaining to the given client.void acquire(ClientThreadId threadId, ID objectId)
threadId
- The requesting thread.objectId
- The object to lock.void shutdown()
void clientDisconnect(ClientId clientId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |