javax.ejb.Lock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jboss-ejb-api_3.1_spec Show documentation
Show all versions of jboss-ejb-api_3.1_spec Show documentation
The Java EJB 3.1 API classes
The newest version!
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static javax.ejb.LockType.WRITE;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Declares a concurrency lock for a singleton method.
*
* @author Carlo de Wolf
* @version $Revision$
* @since 3.1
*/
@Target({METHOD,TYPE})
@Retention(RUNTIME)
public @interface Lock {
LockType value() default WRITE;
}