|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LockManager
Manager to open and close locks
Field Summary | |
---|---|
static int |
TYPE_EXCLUSIVE
Field TYPE_EXCLUSIVE |
static int |
TYPE_READONLY
Field TYPE_READONLY |
Method Summary | |
---|---|
void |
clean()
|
String[] |
getOpenLockNames()
|
LockData |
lock(int type,
String name,
int timeout,
int pageContextId)
locks a thread if already a other thread is come until other thread notify him by unlock method |
void |
unlock(LockData data)
unlocks a locked thread in lock method |
Field Detail |
---|
static final int TYPE_READONLY
TYPE_READONLY
static final int TYPE_EXCLUSIVE
TYPE_EXCLUSIVE
Method Detail |
---|
LockData lock(int type, String name, int timeout, int pageContextId) throws LockTimeoutException, InterruptedException
type
- name
- Lock Name (not case sensitive)timeout
- tiemout to for waiting in this method, if timeout occurs "lockTiemoutException" will be throwdpageContextId
-
LockTimeoutException
InterruptedException
void unlock(LockData data)
data
- String[] getOpenLockNames()
void clean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |