railo.commons.lock
Interface Lock

All Known Implementing Classes:
SimpleLock

public interface Lock


Method Summary
 int getQueueLength()
          Returns an estimate of the number of threads waiting to acquire this lock.
 void lock(long timeout)
           
 void unlock()
           
 

Method Detail

lock

void lock(long timeout)
          throws PageException
Throws:
PageException

unlock

void unlock()

getQueueLength

int getQueueLength()
Returns an estimate of the number of threads waiting to acquire this lock. The value is only an estimate because the number of threads may change dynamically while this method traverses internal data structures. This method is designed for use in monitoring of the system state, not for synchronization control.

Returns:
the estimated number of threads waiting for this lock


Copyright © 2012 Railo