File
Doc
Category
Size
Date
Package
SemaphoreLocked.java
API Doc
JBoss 4.2.1
1845
Fri Jul 13 21:02:36 BST 2007
org.jboss.aspects.concurrent
SemaphoreLocked
public class SemaphoreLocked
Only a certain amount of threads can access a @Semaphored object. Acquire a permit when entering a method, release it when leaving.
see
Semaphored
author
Bill Burke
Fields Summary
Constructors Summary
Methods Summary
int
permits
()
Num permits to acquire
long
timeout
()
Defaults to -1, block until acquired 0 is just a tryLock
java.util.concurrent.TimeUnit
unit
()
Java Code Source