|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Semaphore
public class Semaphore
Field Summary |
---|
Fields inherited from interface EDU.oswego.cs.dl.util.concurrent.Sync |
---|
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR |
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 EDU.oswego.cs.dl.util.concurrent.Sync
java.lang.InterruptedException
public void release()
release
in interface EDU.oswego.cs.dl.util.concurrent.Sync
public boolean attempt(long msecs) throws java.lang.InterruptedException
attempt
in interface EDU.oswego.cs.dl.util.concurrent.Sync
java.lang.InterruptedException
public long getTokens()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |