public interface LockManager
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_EXCLUSIVE
Field
TYPE_EXCLUSIVE |
static int |
TYPE_READONLY
Field
TYPE_READONLY |
Modifier and Type | Method and Description |
---|---|
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
|
static final int TYPE_READONLY
TYPE_READONLY
static final int TYPE_EXCLUSIVE
TYPE_EXCLUSIVE
LockData lock(int type, String name, int timeout, int pageContextId) throws LockTimeoutException, InterruptedException
type
- name
- Lock Name (not case sensitive)timeout
- timeout to for waiting in this method, if timeout occurs "lockTimeoutException"
will be thrownpageContextId
- LockTimeoutException
InterruptedException
void unlock(LockData data)
data
- String[] getOpenLockNames()
void clean()
Copyright © 2019. All rights reserved.