org.jboss.aspects.concurrent
Annotation Type MutexedMethod
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface MutexedMethod
Attach a semaphore to a method.
Only a certain amount of threads are allowed to access that method at one time.
- Author:
- Bill Burke
isFair
public abstract boolean isFair
- Default:
- false
timeout
public abstract long timeout
- Default:
- -1L
unit
public abstract TimeUnit unit
- Default:
- java.util.concurrent.TimeUnit.MILLISECONDS
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.