|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SemaphoreAttributeController
An attribute controller allowing setting the initial number of permits of the semaphore.
Method Summary | |
---|---|
long |
getInitialPermits()
Returns the initial number of permits of the semaphore. |
void |
setInitialPermits(long initialPermits)
Sets the initial number of permits of the semaphore. |
Method Detail |
---|
void setInitialPermits(long initialPermits)
initialPermits
to one makes the semaphore act as a mutual
exclusion lock. Negative seeds are also allowed, in which case no acquires
will proceed until the number of releases has pushed the number of permits
past 0.
initialPermits
- the initial number of permits to set.long getInitialPermits()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |