| |
|
| java.lang.Object com.sun.portal.common.concurrent.Semaphore
Semaphore | public class Semaphore (Code) | | Semaphore provides synchronized access to shared objects.
|
Constructor Summary | |
public | Semaphore(int maxConcurrentUsers) |
Semaphore | public Semaphore(int maxConcurrentUsers)(Code) | | Parameters: maxConcurrentUsers - if 0 means no restrictions onnumber of concurrent users. |
getCurrentUsers | public int getCurrentUsers()(Code) | | Returns the current number of concurrent users
the current number of concurrent users |
getMaxConcurrentUsers | public int getMaxConcurrentUsers()(Code) | | Returns the maximum number of concurrent users
the maximum number of concurrent users |
sSignal | public void sSignal()(Code) | | Using sSignal for consistency with sWait.
|
|
|
|