|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.gouv.culture.util.apache.avalon.excalibur.concurrent.Semaphore
Constructor Summary | |
Semaphore(long tokens)
|
Method Summary | |
void |
acquire()
|
boolean |
attempt(long msecs)
|
long |
getTokens()
|
void |
release()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Semaphore(long tokens)
Method Detail |
public void acquire() throws java.lang.InterruptedException
acquire
in interface org.apache.avalon.excalibur.concurrent.Sync
java.lang.InterruptedException
public void release()
release
in interface org.apache.avalon.excalibur.concurrent.Sync
public boolean attempt(long msecs) throws java.lang.InterruptedException
attempt
in interface org.apache.avalon.excalibur.concurrent.Sync
java.lang.InterruptedException
public long getTokens()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |