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

Optional Element Summary
 boolean isFair
           
 long timeout
           
 TimeUnit unit
           
 

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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.