public interface LockManager
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
|
boolean acquireLock(EngineLock lock)
lock
- void acquireLockWait(EngineLock lock)
lock
- void releaseLock(EngineLock lock)
lock
- void clear()
Copyright © 2012. All Rights Reserved.