|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.threads.Semaphore
Java semaphore implementation.
Copyright (c) SAP AG 2001-2002
| Constructor Summary | |
Semaphore()
|
|
| Method Summary | |
void |
acquire()
Block the calling thread until semaphore could be acquired |
boolean |
acquire(int timeout)
Try to acquire semaphore and block calling thread for a max. amount of time |
void |
release()
Release the semaphore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Semaphore()
| Method Detail |
public void acquire()
acquire in interface ISemaphorepublic boolean acquire(int timeout)
acquire in interface ISemaphoretimeout - Time-out value in secondspublic void release()
release in interface ISemaphore
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||