railo.runtime.lock
Class LockManagerImpl
java.lang.Object
railo.runtime.lock.LockManagerImpl
- All Implemented Interfaces:
- LockManager
public final class LockManagerImpl
- extends Object
- implements LockManager
Lock mnager to make a log by a string name
getInstance
public static LockManager getInstance(boolean caseSensitive)
lock
public LockData lock(int type,
String name,
int timeout,
int pageContextId)
throws LockTimeoutException,
InterruptedException
- Description copied from interface:
LockManager
- locks a thread if already a other thread is come
until other thread notify him by unlock method
- Specified by:
lock
in interface LockManager
name
- Lock Name (not case sensitive)timeout
- tiemout to for waiting in this method, if timeout occurs "lockTiemoutException" will be throwd
- Returns:
- lock data object key for unlocking this lock
- Throws:
LockTimeoutException
InterruptedException
- See Also:
LockManager.lock(int, java.lang.String, int, int)
unlock
public void unlock(LockData data)
- Description copied from interface:
LockManager
- unlocks a locked thread in lock method
- Specified by:
unlock
in interface LockManager
unlock
public void unlock(int pageContextId)
- Specified by:
unlock
in interface LockManager
- See Also:
LockManager.unlock(int)
getOpenLockNames
public String[] getOpenLockNames()
- Specified by:
getOpenLockNames
in interface LockManager
- See Also:
LockManager.getOpenLockNames()
clean
public void clean()
Copyright © 2012 Railo