FileDocCategorySizeDatePackage
SemaphoreLocked.javaAPI DocJBoss 4.2.11845Fri Jul 13 21:02:36 BST 2007org.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
intpermits()
Num permits to acquire

longtimeout()
Defaults to -1, block until acquired 0 is just a tryLock

java.util.concurrent.TimeUnitunit()