railo.runtime.lock
Interface LockManager

All Known Implementing Classes:
LockManagerImpl

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
 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(int pageContextId)
           
 void unlock(LockData data)
          unlocks a locked thread in lock method
 

Field Detail

TYPE_READONLY

static final int TYPE_READONLY
Field TYPE_READONLY

See Also:
Constant Field Values

TYPE_EXCLUSIVE

static final int TYPE_EXCLUSIVE
Field TYPE_EXCLUSIVE

See Also:
Constant Field Values
Method Detail

lock

LockData lock(int type,
              String name,
              int timeout,
              int pageContextId)
              throws LockTimeoutException,
                     InterruptedException
locks a thread if already a other thread is come until other thread notify him by unlock method

Parameters:
type -
name - Lock Name (not case sensitive)
timeout - tiemout to for waiting in this method, if timeout occurs "lockTiemoutException" will be throwd
pageContextId -
Returns:
lock data object key for unlocking this lock
Throws:
LockTimeoutException
InterruptedException

unlock

void unlock(LockData data)
unlocks a locked thread in lock method

Parameters:
data -

getOpenLockNames

String[] getOpenLockNames()

unlock

void unlock(int pageContextId)


Copyright © 2012 Railo