public class InMemoryLockManager extends Object implements LockManager
| Constructor and Description |
|---|
InMemoryLockManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquireLock(EngineLock lock)
The following method will try to acquire provided lock
|
void |
acquireLockWait(EngineLock lock)
The following method will try to acquire lock and will wait until lock acquired
|
void |
clear()
The following method will clear all inserted locks
|
void |
releaseLock(EngineLock lock)
The following method will release a lock Also it will notify all threads awaiting inside acquireLockWait that
some lock was released and they can try to acquire a lock
|
public boolean acquireLock(EngineLock lock)
LockManageracquireLock in interface LockManagerpublic void acquireLockWait(EngineLock lock)
LockManageracquireLockWait in interface LockManagerpublic void releaseLock(EngineLock lock)
LockManagerreleaseLock in interface LockManagerpublic void clear()
LockManagerclear in interface LockManagerCopyright © 2012. All Rights Reserved.