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